Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
barskern committed Oct 23, 2018
1 parent f989caa commit b81ff97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ func NewIgcServer() (srv IgcServer) {
srv.router.HandleFunc("/igc", srv.trackGetAllHandler).Methods(http.MethodGet)

srv.router.HandleFunc(
"/igc/{id:[A-Za-z0-9+/]+}",
"/igc/{id:[A-Za-z0-9+/]{8}}",
srv.trackGetHandler,
).Methods(http.MethodGet)

srv.router.HandleFunc(
"/igc/{id:[A-Za-z0-9+/]+}/{field:[a-zA-Z0-9_-]+}",
"/igc/{id:[A-Za-z0-9+/]{8}}/{field:[a-zA-Z0-9_-]+}",
srv.trackGetFieldHandler,
).Methods(http.MethodGet)

Expand Down

0 comments on commit b81ff97

Please sign in to comment.