aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/main.go')
-rw-r--r--backend/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/main.go b/backend/main.go
index 1ea1fd1..1787e3c 100644
--- a/backend/main.go
+++ b/backend/main.go
@@ -10,6 +10,7 @@ import (
"github.com/jackc/pgx/v5"
"github.com/labstack/echo/v4"
+ "github.com/labstack/echo/v4/middleware"
oapimiddleware "github.com/oapi-codegen/echo-middleware"
"github.com/nsfisis/iosdc-2024-albatross-backend/api"
@@ -144,6 +145,9 @@ func main() {
e := echo.New()
+ e.Use(middleware.Logger())
+ e.Use(middleware.Recover())
+
{
apiGroup := e.Group("/api")
apiGroup.Use(oapimiddleware.OapiRequestValidator(openApiSpec))