Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aksel Baardsen
Assignment 1
Commits
42d0bf2f
Commit
42d0bf2f
authored
Oct 19, 2019
by
Aksel Baardsen
Browse files
port defaults to 5000
parent
d768d911
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.go
View file @
42d0bf2f
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment