mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
add unstable prefix
This commit is contained in:
parent
617165e59f
commit
63ef76f0ca
2
v3.go
2
v3.go
@ -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"))),
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user