Commit b19a9efd authored by Aksel Baardsen's avatar Aksel Baardsen
Browse files

deleted uneseccary handler

parent 6ba60c55
......@@ -21,11 +21,7 @@ func main() {
// creating a sub-router with a fixed path that only accepts GET-requests
c := r.PathPrefix("/conservation/v1").Methods("GET").Subrouter()
// two handlerpaths makes sure that the caller does not HAVE to specify limit
c.Path("/country/{country_identifier:[a-zA-Z][a-zA-Z]}").
Queries("limit", "{limit}").
HandlerFunc(handler.Chandler).
Name("Handel")
// one handler for each path
c.Path("/country/{country_identifier:[a-zA-Z][a-zA-Z]}").
HandlerFunc(handler.Chandler)
......
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