Skip to content

Commit a58f569

Browse files
committed
removed some default paths that are better handled by negroni
1 parent a9eb27d commit a58f569

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

router.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ func New(store *datastore.Datastore) *CustomRouter {
2626
customRouter := &CustomRouter{}
2727
r := bone.New()
2828
r.CaseSensitive = false
29-
r.Handle("/public/", http.StripPrefix("/public/", http.FileServer(http.Dir("./public/"))))
29+
// r.Handle("/public/", http.StripPrefix("/public/", http.FileServer(http.Dir("./public/"))))
3030
// r.Handle("/assets/", http.StripPrefix("/assets/", http.FileServer(http.Dir("./assets/"))))
31-
r.Handle("/attachments/", http.StripPrefix("/attachments/", http.FileServer(http.Dir(store.Settings.AttachmentsFolder))))
31+
// r.Handle("/attachments/", http.StripPrefix("/attachments/", http.FileServer(http.Dir(store.Settings.AttachmentsFolder))))
3232
customRouter.Mux = r
3333
customRouter.Store = store
3434
return customRouter

0 commit comments

Comments
 (0)