From 225cce9c773a1ee5122fe8ff402adc624cef7b74 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 3 Feb 2017 16:28:11 +0000 Subject: [PATCH] Prefix /api as per standards --- src/github.com/matrix-org/dendrite/clientapi/clientapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/dendrite/clientapi/clientapi.go b/src/github.com/matrix-org/dendrite/clientapi/clientapi.go index 1e83a43ac..989dbf3b2 100644 --- a/src/github.com/matrix-org/dendrite/clientapi/clientapi.go +++ b/src/github.com/matrix-org/dendrite/clientapi/clientapi.go @@ -16,8 +16,8 @@ import ( // to clients which need to make outbound HTTP requests. func setup(mux *http.ServeMux, httpClient *http.Client) { mux.Handle("/metrics", prometheus.Handler()) - mux.Handle("/send", prometheus.InstrumentHandler("send_message", util.MakeJSONAPI(&writers.SendMessage{}))) - mux.Handle("/sync", prometheus.InstrumentHandler("sync", util.MakeJSONAPI(&readers.Sync{}))) + mux.Handle("/api/send", prometheus.InstrumentHandler("send_message", util.MakeJSONAPI(&writers.SendMessage{}))) + mux.Handle("/api/sync", prometheus.InstrumentHandler("sync", util.MakeJSONAPI(&readers.Sync{}))) } func main() {