diff --git a/cmd/dwelling-upload/main.go b/cmd/dwelling-upload/main.go index 234cfbd..cd2b40a 100644 --- a/cmd/dwelling-upload/main.go +++ b/cmd/dwelling-upload/main.go @@ -75,6 +75,7 @@ func main() { hand := handlers.NewUploadHandlers(config, logErr, logUpload, logDownload) srv := server.NewHttpServer() + srv.SetNotFoundHandler(hand.NotFound) srv.ServeStatic("/assets/*filepath", http.Dir(config.WebDir+"/assets")) srv.GET("/", hand.Index) srv.POST("/", hand.Upload)