Browse Source

Disables static file serving

master
Noah Pederson 2 years ago
parent
commit
a532b486e0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      cmd/main.go

+ 2
- 1
cmd/main.go View File

@ -29,7 +29,8 @@ func main() {
contact.BindEndpoints(r, contactService)
})
r.Handle("/*", http.FileServer(http.Dir("./static/")))
//Uncomment this to enable static file serving
// r.Handle("/*", http.FileServer(http.Dir("./static/")))
//Finally bind everything to the root endpoint
http.Handle("/", r)


Loading…
Cancel
Save