From 7c601c1a26fe9631142d0cbab8ec03ba01e47d45 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 17 Feb 2017 17:34:17 +0000 Subject: [PATCH] Use const --- src/github.com/matrix-org/dendrite/clientapi/routing/routing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go b/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go index 817690d8c..e952d57f4 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/clientapi/routing/routing.go @@ -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{}))