From efbd3b3c09352533598dfa3556091a28c1b94fc9 Mon Sep 17 00:00:00 2001 From: Las Zenow Date: Sat, 25 Aug 2012 16:41:54 +0200 Subject: [PATCH] Send the epub moderating files --- admin.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/admin.go b/admin.go index b73538e..9950069 100644 --- a/admin.go +++ b/admin.go @@ -117,6 +117,11 @@ type newData struct { func newHandler(coll *mgo.Collection) func(http.ResponseWriter, *http.Request) { return func(w http.ResponseWriter, r *http.Request) { + if len(r.URL.Path) > len("/new/") { + http.ServeFile(w, r, r.URL.Path[1:]) + return + } + sess := GetSession(r) if sess.User == "" { http.NotFound(w, r)