feat: Request-IDs for better debugging
This commit is contained in:
parent
b4bb732303
commit
f64daaf817
2
main.go
2
main.go
@ -12,6 +12,7 @@ import (
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/middleware/cors"
|
||||
"github.com/gofiber/fiber/v2/middleware/keyauth"
|
||||
"github.com/gofiber/fiber/v2/middleware/requestid"
|
||||
"github.com/gofiber/swagger"
|
||||
"github.com/redis/go-redis/v9"
|
||||
"github.com/spf13/viper"
|
||||
@ -120,6 +121,7 @@ func main() {
|
||||
})
|
||||
|
||||
app.Use(cors.New())
|
||||
app.Use(requestid.New())
|
||||
|
||||
// Swagger documentation route
|
||||
app.Get("/swagger/*", swagger.HandlerDefault)
|
||||
|
Loading…
x
Reference in New Issue
Block a user