add unstable prefix

This commit is contained in:
Kegan Dougal 2021-12-22 18:20:02 +00:00
parent 617165e59f
commit 63ef76f0ca
2 changed files with 2 additions and 2 deletions

2
v3.go
View File

@ -48,7 +48,7 @@ func RunSyncV3Server(h http.Handler, bindAddr string) {
// HTTP path routing
r := mux.NewRouter()
r.Handle("/_matrix/client/v3/sync", allowCORS(h))
r.Handle("/_matrix/client/org.matrix.msc3575/sync", allowCORS(h))
r.Handle("/_matrix/client/unstable/org.matrix.msc3575/sync", allowCORS(h))
r.PathPrefix("/client/").HandlerFunc(
allowCORS(
http.StripPrefix("/client/", http.FileServer(http.Dir("./client"))),

View File

@ -237,7 +237,7 @@ func runTestServer(t *testing.T, v2Server *testV2Server, postgresConnectionStrin
}
r := mux.NewRouter()
r.Handle("/_matrix/client/v3/sync", h)
r.Handle("/_matrix/client/org.matrix.msc3575/sync", h)
r.Handle("/_matrix/client/unstable/org.matrix.msc3575/sync", h)
srv := httptest.NewServer(r)
return &testV3Server{
srv: srv,