Let's reorginise endpoints a little.
This commit is contained in:
parent
d7191d0fbd
commit
cb1dd51750
@ -84,9 +84,11 @@ func main() {
|
||||
srv := http.NewHttpServer()
|
||||
|
||||
srv.SetNotFoundHandler(http.NotFound)
|
||||
|
||||
srv.ServeStatic("/assets/*filepath", hand.AssetsFS())
|
||||
srv.GET("/robots.txt", http.RobotsTxt)
|
||||
srv.GET("/favicon.svg", http.Favicon)
|
||||
srv.ServeStatic("/assets/*filepath", hand.AssetsFS())
|
||||
|
||||
srv.GET("/", hand.Index)
|
||||
srv.POST("/", hand.Upload)
|
||||
srv.POST("/delete", hand.Delete)
|
||||
|
Loading…
Reference in New Issue
Block a user