This commit is contained in:
2025-08-13 13:58:55 +07:00
parent 26765fcc51
commit 71fd910b29
8 changed files with 106 additions and 9 deletions

View File

@@ -7,6 +7,9 @@ import (
"github.com/gin-gonic/gin"
swaggerFiles "github.com/swaggo/files"
ginSwagger "github.com/swaggo/gin-swagger"
patientHandler "template_blueprint/pkg/handlers/patient"
datapoliklinikHandler "template_blueprint/pkg/handlers/poliklinik"
dataRetribusi "template_blueprint/pkg/handlers/retribusi"
//_ "template_blueprint/docs"
//swaggerFiles "github.com/swaggo/files"
@@ -16,11 +19,7 @@ import (
"net/http"
//_ "template_blueprint/cmd/api/docs"
"template_blueprint/cmd/web"
//_ "template_blueprint/internal/docs"
_ "template_blueprint/docs"
patientHandler "template_blueprint/pkg/handlers/patient"
datapoliklinikHandler "template_blueprint/pkg/handlers/poliklinik"
dataRetribusi "template_blueprint/pkg/handlers/retribusi"
"time"
)
@@ -32,7 +31,8 @@ func (s *Server) RegisterRoutes() http.Handler {
AllowHeaders: []string{"Origin", "Content-Type"},
AllowCredentials: true,
}))
//r.Use(middleware.CORSConfig())
//r.Use(middleware.ErrorHandler())
//r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
r.GET("/", s.HelloWorldHandler)