diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-05-03 17:17:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 17:17:02 +0100 |
commit | dd061a172e97005a4a7a4c37db6caf3f77c10d51 (patch) | |
tree | 6603b4825a7c5c335b8b9041339ed2ddd7d91c56 /cmd/dendrite-demo-pinecone | |
parent | 4ad5f9c982fe5dc9e306a9269621ead8c31248cf (diff) |
Tidy up `AddPublicRoutes` (#2412)
* Simplify federation API `AddPublicRoutes`
* Simplify client API `AddPublicRoutes`
* Simplify media API `AddPublicRoutes`
* Simplify sync API `AddPublicRoutes`
* Simplify `AddAllPublicRoutes`
Diffstat (limited to 'cmd/dendrite-demo-pinecone')
-rw-r--r-- | cmd/dendrite-demo-pinecone/main.go | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/cmd/dendrite-demo-pinecone/main.go b/cmd/dendrite-demo-pinecone/main.go index 33487e64..70343605 100644 --- a/cmd/dendrite-demo-pinecone/main.go +++ b/cmd/dendrite-demo-pinecone/main.go @@ -185,16 +185,7 @@ func main() { ExtPublicRoomsProvider: roomProvider, ExtUserDirectoryProvider: userProvider, } - monolith.AddAllPublicRoutes( - base, - base.PublicClientAPIMux, - base.PublicFederationAPIMux, - base.PublicKeyAPIMux, - base.PublicWellKnownAPIMux, - base.PublicMediaAPIMux, - base.SynapseAdminMux, - base.DendriteAdminMux, - ) + monolith.AddAllPublicRoutes(base) wsUpgrader := websocket.Upgrader{ CheckOrigin: func(_ *http.Request) bool { |