mirror of
https://github.com/nprasad2077/NBA_Go.git
synced 2026-11-04 12:04:44 +00:00
fields fixed
This commit is contained in:
1 parent
58b27fdb76
commit
e9e77e8e22
8 files changed
+213
-53
No files matched your search
@@ -21,6 +21,7 @@ import (
|
||||
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/middleware/adaptor"
|
||||
"github.com/gofiber/fiber/v2/middleware/cors"
|
||||
"github.com/gofiber/fiber/v2/middleware/logger"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
fiberswagger "github.com/swaggo/fiber-swagger"
|
||||
@@ -73,6 +74,9 @@ func main() {
|
||||
},
|
||||
})
|
||||
|
||||
// — CORS Allow ALL origins (development) —
|
||||
app.Use(cors.New())
|
||||
|
||||
// middlewares
|
||||
app.Use(logger.New())
|
||||
app.Use(middleware.MetricsMiddleware())
|
||||
|
||||
Reference in new issue
Block a user