dashboard: Update
This commit is contained in:
parent
9ea415b857
commit
116c061715
2 changed files with 4 additions and 4 deletions
|
@ -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"))))
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Reference in a new issue