penambahan data lis

This commit is contained in:
2025-08-26 08:27:29 +07:00
parent ac12d30dee
commit 683d8c9ed1
13 changed files with 523 additions and 40 deletions

No files matched your search

+5 -5
View File
@@ -26,11 +26,11 @@ type service struct {
}
var (
hostSimrs = os.Getenv("SIMRS_STAG_HOST")
userNameSimrs = os.Getenv("SIMRS_STAG_USER")
passwordSimrs = os.Getenv("SIMRS_STAG_PASS")
dbNameSimrs = os.Getenv("SIMRS_STAG_NAME")
portSimrs = os.Getenv("SIMRS_STAG_PORT")
hostSimrs = os.Getenv("SIMRS_HOST")
userNameSimrs = os.Getenv("SIMRS_USERNAME")
passwordSimrs = os.Getenv("SIMRS_PASSWORD")
dbNameSimrs = os.Getenv("SIMRS_NAME")
portSimrs = os.Getenv("SIMRS_PORT")
hostSatuData = os.Getenv("SATUDATA_HOST")
userNameSatuData = os.Getenv("SATUDATA_USERNAME")
+5
View File
@@ -1,6 +1,8 @@
package server
import (
swaggerFiles "github.com/swaggo/files"
ginSwagger "github.com/swaggo/gin-swagger"
"net/http"
"github.com/gin-gonic/gin"
@@ -14,6 +16,9 @@ func (s *Server) RegisterRoutes() http.Handler {
r.GET("/hello", s.HelloWorldHandler)
r.GET("/health", s.healthHandler)
// Swagger UI route
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
v1 := r.Group("/api")
mikrobiologi := v1.Group("/mikrobiologi")