move templates to web dir
This commit is contained in:
@@ -12,7 +12,7 @@ func main() {
|
||||
http.HandleFunc("POST /up/search", routes.UpSearch)
|
||||
|
||||
// serve files from the "static" directory
|
||||
fs := http.FileServer(http.Dir("./static"))
|
||||
fs := http.FileServer(http.Dir("web/static"))
|
||||
http.Handle("GET /static/", http.StripPrefix("/", fs))
|
||||
|
||||
// start server
|
||||
|
||||
Reference in New Issue
Block a user