diff --git a/pkg/handlers/router.go b/pkg/handlers/router.go index bdc0853..31ef3ca 100644 --- a/pkg/handlers/router.go +++ b/pkg/handlers/router.go @@ -57,6 +57,7 @@ func BuildRouter(c *services.Container) error { CookieSameSite: http.SameSiteStrictMode, ContextKey: context.CSRFKey, }), + echo.WrapMiddleware(c.Inertia.Middleware), middleware.InertiaProps(), // leave this as the last one )