mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-08 11:22:10 +00:00
udpate
This commit is contained in:
parent
6966cb7392
commit
6cdc145809
@ -20,6 +20,8 @@ func Execute(w http.ResponseWriter, r *http.Request, file string) (int, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
file, _ := ioutil.ReadFile(file)
|
file, _ := ioutil.ReadFile(file)
|
||||||
|
|
||||||
|
// render the template here
|
||||||
w.Write([]byte(string(file)))
|
w.Write([]byte(string(file)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
6
hugo.go
6
hugo.go
@ -3,12 +3,10 @@ package hugo
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/spf13/hugo/commands"
|
"github.com/hacdias/caddy-hugo/routing"
|
||||||
|
|
||||||
"github.com/mholt/caddy/config/setup"
|
"github.com/mholt/caddy/config/setup"
|
||||||
"github.com/mholt/caddy/middleware"
|
"github.com/mholt/caddy/middleware"
|
||||||
|
"github.com/spf13/hugo/commands"
|
||||||
"github.com/hacdias/caddy-hugo/routing"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Setup function
|
// Setup function
|
||||||
|
@ -39,5 +39,4 @@ func Route(w http.ResponseWriter, r *http.Request) (int, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return 200, nil
|
return 200, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user