mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
fix public assets path
This commit is contained in:
parent
51c66e7fbf
commit
063ff180f7
2
hugo.go
2
hugo.go
@ -177,7 +177,7 @@ func (h CaddyHugo) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error
|
||||
|
||||
// serveAssets handles the /admin/assets requests
|
||||
func serveAssets(w http.ResponseWriter, r *http.Request) (int, error) {
|
||||
filename := strings.Replace(r.URL.Path, "/admin/", "", 1)
|
||||
filename := strings.Replace(r.URL.Path, "/admin/assets", "public", 1)
|
||||
file, err := assets.Asset(filename)
|
||||
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user