Set NotFound handler in main.
This commit is contained in:
parent
8fdf0b61e2
commit
de77530962
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user