mirror of
https://github.com/mpolden/echoip.git
synced 2025-06-25 12:17:52 +02:00
Add /json route
This commit is contained in:
@ -277,6 +277,7 @@ func (a *API) Handlers() http.Handler {
|
||||
|
||||
// JSON
|
||||
r.Handle("/", appHandler(a.JSONHandler)).Methods("GET").Headers("Accept", APPLICATION_JSON)
|
||||
r.Handle("/json", appHandler(a.JSONHandler)).Methods("GET")
|
||||
|
||||
// CLI
|
||||
r.Handle("/", appHandler(a.CLIHandler)).Methods("GET").MatcherFunc(cliMatcher)
|
||||
|
Reference in New Issue
Block a user