Skip to content
Snippets Groups Projects
Commit 42d0bf2f authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

port defaults to 5000

parent d768d911
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,10 @@ import (
func main() {
r := mux.NewRouter()
port := os.Getenv("PORT")
if port == "" {
port = "5000"
}
c := r.PathPrefix("/conservation/v1").Methods("GET").Subrouter()
// two handlerpaths makes sure that the caller does not HAVE to specify limit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment