Add more stub endpoints

This commit is contained in:
Kegan Dougal 2017-04-20 15:25:23 +01:00
parent 2ed48c54a5
commit 2d4954fc9a

View file

@ -110,6 +110,16 @@ func Setup(servMux *http.ServeMux, httpClient *http.Client, cfg config.ClientAPI
})),
)
// Riot logs get flooded unless this is handled
r0mux.Handle("/presence/{userID}/status",
make("presence", util.NewJSONRequestHandler(func(req *http.Request) util.JSONResponse {
return util.JSONResponse{
Code: 200,
JSON: struct{}{},
}
})),
)
servMux.Handle("/metrics", prometheus.Handler())
servMux.Handle("/api/", http.StripPrefix("/api", apiMux))
}