dashboard: Update

This commit is contained in:
nemunaire 2022-06-08 03:22:29 +02:00
parent 9ea415b857
commit 116c061715
2 changed files with 4 additions and 4 deletions

View file

@ -81,7 +81,7 @@ func declareStaticRoutes(router *gin.RouterGroup, baseURL string) {
if forwarder != nil {
fwd_request(c.Writer, c.Request, *forwarder)
} else {
http.ServeFile(c.Writer, c.Request, path.Join(fic.FilesDir, strings.TrimPrefix(c.Request.URL.Path, path.Join(baseURL, "files"))))
http.ServeFile(c.Writer, c.Request, path.Join(fic.FilesDir, strings.TrimPrefix(c.Request.URL.Path, "/"+path.Join(baseURL, "files"))))
}
})