add browse file; move function to utils pkg
This commit is contained in:
1 parent
7a5e184610
commit
2300aa3a63
4 files changed
+38
-26
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package browse
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/hacdias/caddy-hugo/page"
|
||||
)
|
||||
|
||||
// Execute sth
|
||||
func Execute(w http.ResponseWriter, r *http.Request) (int, error) {
|
||||
page := new(page.Page)
|
||||
page.Title = "Browse"
|
||||
return page.Render(w, r, "browse")
|
||||
}
|
||||
Reference in new issue
Block a user