Clean up the code a little.
This commit is contained in:
parent
4a5f54ee70
commit
3a1e044b6d
@ -95,7 +95,6 @@ func main() {
|
||||
srv := server.NewHttpServer()
|
||||
|
||||
srv.SetNotFoundHandler(hand.NotFound)
|
||||
// srv.ServeStatic("/assets/*filepath", http.Dir(config.WebDir+"/assets"))
|
||||
srv.ServeStatic("/assets/*filepath", hand.AssetsFS())
|
||||
srv.GET("/", hand.Index)
|
||||
srv.POST("/", hand.Upload)
|
||||
@ -131,5 +130,4 @@ func main() {
|
||||
}()
|
||||
|
||||
<-closeSignal
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user