docs and simplify

This commit is contained in:
Henrique Dias committed 2016-02-14 10:20:47 +00:00
1 parent 4a6c53a12b
commit 2414f2edec
5 files changed
+10 -9

No files matched your search

+2 -1
View File
@@ -14,7 +14,8 @@ import (
"github.com/hacdias/caddy-hugo/utils"
)
// POST handles the POST method on browse page
// POST handles the POST method on browse page. It's used to create new files,
// folders and upload content.
func POST(w http.ResponseWriter, r *http.Request, c *config.Config) (int, error) {
// Remove prefix slash
r.URL.Path = strings.TrimPrefix(r.URL.Path, "/")