docs and simplify

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

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, "/")