Update routes.go

Added /api/services/{id}/responsecode
pull/904/head
Andrew Gerhold 2020-11-27 13:31:50 -08:00 committed by GitHub
parent 559e0b9ff4
commit 718ebe84d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -137,7 +137,8 @@ func Router() *mux.Router {
api.Handle("/api/services/{id}/failures", authenticated(servicesDeleteFailuresHandler, false)).Methods("DELETE")
api.Handle("/api/services/{id}/hits", scoped(apiServiceHitsHandler)).Methods("GET")
api.Handle("/api/services/{id}/hits", authenticated(apiServiceHitsDeleteHandler, false)).Methods("DELETE")
api.Handle("/api/services/{id}/responsecode", scoped(apiServiceResponseCodeHandler)).Methods("GET")
// API SERVICE CHART DATA Routes
api.Handle("/api/services/{id}/hits_data", cached("30s", "application/json", apiServiceDataHandler)).Methods("GET")
api.Handle("/api/services/{id}/failure_data", cached("30s", "application/json", apiServiceFailureDataHandler)).Methods("GET")