close #71; fix bugs

This commit is contained in:
Henrique Dias committed 2016-06-07 18:15:55 +01:00
1 parent acc4c92b15
commit 4cd72ca58d
11 files changed
+38 -32

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ var (
// ServeHTTP serves the editor page
func ServeHTTP(w http.ResponseWriter, r *http.Request, c *config.Config) (int, error) {
conf = c
filename = strings.Replace(r.URL.Path, "/admin/edit/", "", 1)
filename = strings.Replace(r.URL.Path, c.Admin+"/edit/", "", 1)
filename = c.Path + filename
switch r.Method {