mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:16:09 -04:00
Make federation use resource_for_federation as well.
This commit is contained in:
parent
9f863d3466
commit
29aa13f0d4
4 changed files with 5 additions and 49 deletions
|
@ -27,6 +27,7 @@ from twisted.web.server import Site
|
|||
from synapse.http.server import TwistedHttpServer, JsonResource
|
||||
from synapse.http.client import TwistedHttpClient
|
||||
from synapse.rest.base import CLIENT_PREFIX
|
||||
from synapse.federation.transport import PREFIX
|
||||
|
||||
from daemonize import Daemonize
|
||||
|
||||
|
@ -94,7 +95,8 @@ class SynapseHomeServer(HomeServer):
|
|||
"""
|
||||
desired_tree = ( # list of tuples containing (path_str, Resource)
|
||||
("/matrix/client", self.get_resource_for_web_client()),
|
||||
(CLIENT_PREFIX, self.get_resource_for_client())
|
||||
(CLIENT_PREFIX, self.get_resource_for_client()),
|
||||
(PREFIX, self.get_resource_for_federation())
|
||||
)
|
||||
|
||||
self.root_resource = Resource()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue