1
0

Clean up the code a little.

This commit is contained in:
Alexander Andreev 2022-02-08 22:48:05 +04:00
parent 4a5f54ee70
commit 3a1e044b6d
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -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
}