mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 22:43:10 -06:00
Use const
This commit is contained in:
parent
79e5c8a07b
commit
7c601c1a26
|
|
@ -20,7 +20,7 @@ func make(metricsName string, h util.JSONRequestHandler) http.Handler {
|
|||
// to clients which need to make outbound HTTP requests.
|
||||
func Setup(servMux *http.ServeMux, httpClient *http.Client) {
|
||||
apiMux := mux.NewRouter()
|
||||
r0mux := apiMux.PathPrefix("/_matrix/client/r0").Subrouter()
|
||||
r0mux := apiMux.PathPrefix(pathPrefixR0).Subrouter()
|
||||
r0mux.Handle("/sync", make("sync", &readers.Sync{}))
|
||||
r0mux.Handle("/rooms/{roomID}/send/{eventType}", make("send_message", &writers.SendMessage{}))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue