Add /json route

This commit is contained in:
Martin Polden
2016-04-17 09:31:33 +02:00
parent 26fdb23f37
commit 7d23fe9853
2 changed files with 6 additions and 2 deletions

View File

@ -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)