fix bug
All checks were successful
Build and Release / release (push) Successful in 1m6s

This commit is contained in:
2026-04-19 19:57:09 +07:00
parent 80f054df63
commit f127e2f029

View File

@@ -57,21 +57,19 @@ func NewHttpServer() *FiberServer {
}
func (s *FiberServer) SetupServer(
sqlPg sqlc.DBTX,
sqlTile *sql.DB,
sqlRasterTile *sql.DB,
redis cache.Cache,
sclient storage.Storage,
sqlPg sqlc.DBTX,
sqlTile *sql.DB,
sqlRasterTile *sql.DB,
redis cache.Cache,
sclient storage.Storage,
oauth *oauth2.Config,
) {
// Apply CORS middleware
s.App.Use(cors.New(cors.Config{
AllowOrigins: []string{
"http://localhost:3000",
"https://localhost:3000",
"http://localhost:3001",
"https://localhost:3001",
"http://localhost:3344",
"https://history-admin.kain.id.vn",
},
AllowMethods: []string{"GET", "POST", "PUT", "DELETE", "OPTIONS", "PATCH"},
AllowHeaders: []string{"Accept", "Authorization", "Content-Type", "Origin"},