1
0

NotFoundHandler changed from hand.NotFound to http.NotFound.

This commit is contained in:
Alexander Andreev 2023-05-06 23:13:13 +04:00
parent 13053bbc21
commit 724e9f1cf6
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -53,7 +53,7 @@ func main() {
srv := http.NewHttpServer() srv := http.NewHttpServer()
srv.SetNotFoundHandler(hand.NotFound) srv.SetNotFoundHandler(http.NotFound)
srv.ServeStatic("/assets/*filepath", hand.AssetsFS()) srv.ServeStatic("/assets/*filepath", hand.AssetsFS())
srv.GET("/", hand.Index) srv.GET("/", hand.Index)