You've already forked filebrowser
mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-11-26 14:25:26 +08:00
updates
This commit is contained in:
5
hugo.go
5
hugo.go
@@ -18,6 +18,7 @@ import (
|
||||
"github.com/spf13/hugo/commands"
|
||||
)
|
||||
|
||||
// Setup configures the middleware
|
||||
func Setup(c *setup.Controller) (middleware.Middleware, error) {
|
||||
commands.Execute()
|
||||
|
||||
@@ -102,12 +103,12 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)
|
||||
|
||||
// Browse page
|
||||
if page == "browse" {
|
||||
code, err = browse.Execute(w, r)
|
||||
code, err = browse.ServeHTTP(w, r)
|
||||
}
|
||||
|
||||
// Edit page
|
||||
if page == "edit" {
|
||||
code, err = editor.Execute(w, r)
|
||||
code, err = editor.ServeHTTP(w, r)
|
||||
}
|
||||
|
||||
// Whenever the header "X-Refenerate" is true, the website should be
|
||||
|
||||
Reference in New Issue
Block a user