diff --git a/admin.go b/admin.go index 7060430..831d713 100644 --- a/admin.go +++ b/admin.go @@ -172,11 +172,6 @@ func newHandler(w http.ResponseWriter, r *http.Request) { return } - if len(r.URL.Path) > len("/new/") { - http.ServeFile(w, r, NEW_PATH+r.URL.Path[len("/new/"):]) - return - } - err := r.ParseForm() if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) diff --git a/config.go b/config.go index d55d409..3e8daa2 100644 --- a/config.go +++ b/config.go @@ -20,7 +20,6 @@ const ( TEMPLATE_PATH = "templates/" COVER_PATH = "cover/" - NEW_PATH = "new/" CSS_PATH = "css/" JS_PATH = "js/" IMG_PATH = "img/" diff --git a/templates/new.html b/templates/new.html index 7cb976f..8e606e4 100644 --- a/templates/new.html +++ b/templates/new.html @@ -47,7 +47,7 @@