From b56e45d74389d38c747887d3cb2a2b295bb549c7 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 30 May 2023 18:55:47 +0200 Subject: [PATCH] fix: use rewrite when hosting frontend files via the api Resolves https://kolaente.dev/vikunja/api/issues/1531 --- pkg/routes/routes.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/routes/routes.go b/pkg/routes/routes.go index 68beb2a7a..03488dd24 100644 --- a/pkg/routes/routes.go +++ b/pkg/routes/routes.go @@ -176,7 +176,10 @@ func RegisterRoutes(e *echo.Echo) { // static files if static := config.ServiceStaticpath.GetString(); static != "" { - e.Use(middleware.Static(static)) + e.Use(middleware.StaticWithConfig(middleware.StaticConfig{ + Root: static, + HTML5: true, + })) } // CORS_SHIT