fix: use rewrite when hosting frontend files via the api
Resolves https://kolaente.dev/vikunja/api/issues/1531
This commit is contained in:
parent
adc9998b19
commit
b56e45d743
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user