mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-08 15:33:09 -06:00
Add more stub endpoints
This commit is contained in:
parent
2ed48c54a5
commit
2d4954fc9a
|
|
@ -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("/metrics", prometheus.Handler())
|
||||||
servMux.Handle("/api/", http.StripPrefix("/api", apiMux))
|
servMux.Handle("/api/", http.StripPrefix("/api", apiMux))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue