Commit fe5c3f65 authored by Your Name's avatar Your Name

slog-fiber

parent be1df639
......@@ -25,6 +25,9 @@ import (
"github.com/odysseus/cache/cachedata"
"github.com/odysseus/cache/model"
"github.com/gofiber/fiber/v2/middleware/recover"
slogfiber "github.com/samber/slog-fiber"
)
var (
......@@ -559,6 +562,9 @@ func main() {
// Create a new instance of the Fiber web framework.
app := fiber.New()
app.Use(slogfiber.New(slog.Default()))
app.Use(recover.New())
apiGroup := app.Group("/api")
jwtGroup := app.Group("/jwt")
callbackGroup := app.Group("/callback")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment