diff options
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -288,7 +288,11 @@ func handleDeletionLog(w http.ResponseWriter, r *http.Request) { } func handle(w http.ResponseWriter, r *http.Request) { - if !strings.HasPrefix(r.URL.Path, prefix) && r.URL.Path != deletionPath { + if r.URL.Path == deletionPath || strings.HasPrefix(r.URL.Path, prefix+"static/") { + http.DefaultServeMux.ServeHTTP(w, r) + } + + if !strings.HasPrefix(r.URL.Path, prefix) { errorResponse(w, http.StatusNotFound, http.StatusText(http.StatusNotFound)) return } |