.env.example, addr config, working on banned mime types
This commit is contained in:
@@ -131,9 +131,9 @@ func main() {
|
||||
mux.HandleFunc("POST /{id}/delete", deleteHandler(db, config))
|
||||
mux.HandleFunc("GET /health", health)
|
||||
|
||||
log.Println("listening on http://localhost:8080")
|
||||
log.Println("listening on", config.Addr)
|
||||
|
||||
err = http.ListenAndServe("localhost:8080", mux)
|
||||
err = http.ListenAndServe(config.Addr, mux)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user