Commit 42d0bf2f authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

port defaults to 5000

parent d768d911
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment