diff --git a/server.go b/server.go index 2cb5887..c62ea7c 100644 --- a/server.go +++ b/server.go @@ -21,6 +21,8 @@ func NewServer(conf *koanf.Koanf, pool *pgxpool.Pool) *echo.Echo { func addMiddleware(s *echo.Echo, conf *koanf.Koanf) { s.Use(middleware.CORS()) + s.Use(middleware.Logger()) + s.Use(middleware.JWTWithConfig(middleware.JWTConfig{ Skipper: func(ctx echo.Context) bool { return ctx.Request().Method == "GET" && ctx.Request().URL.Path != "/links"