diff --git a/cmd/dwelling-upload/main.go b/cmd/dwelling-upload/main.go index c5a51fd..47d0207 100644 --- a/cmd/dwelling-upload/main.go +++ b/cmd/dwelling-upload/main.go @@ -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)