NotFoundHandler changed from hand.NotFound to http.NotFound.
This commit is contained in:
parent
13053bbc21
commit
724e9f1cf6
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user