Remove dependencies from new/ foder
This commit is contained in:
parent
6971028b9e
commit
49f824802b
4 changed files with 11 additions and 12 deletions
5
admin.go
5
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)
|
||||
|
|
Reference in a new issue