diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-10-31 22:29:02 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-31 22:29:02 +1100 |
commit | f79f45448527f22f3813e38233521a5e13e9223e (patch) | |
tree | 29076806f03229e5353a1e745cb6ce1350891713 /synapse/app | |
parent | Fix search 500ing (#4122) (diff) | |
download | synapse-f79f45448527f22f3813e38233521a5e13e9223e.tar.xz |
Remove deprecated v1 key exchange endpoint (#4119)
Diffstat (limited to 'synapse/app')
-rwxr-xr-x | synapse/app/homeserver.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index 593e1e75db..415374a2ce 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -37,7 +37,6 @@ from synapse.api.urls import ( FEDERATION_PREFIX, LEGACY_MEDIA_PREFIX, MEDIA_PREFIX, - SERVER_KEY_PREFIX, SERVER_KEY_V2_PREFIX, STATIC_PREFIX, WEB_CLIENT_PREFIX, @@ -59,7 +58,6 @@ from synapse.python_dependencies import CONDITIONAL_REQUIREMENTS, check_requirem from synapse.replication.http import REPLICATION_PREFIX, ReplicationRestResource from synapse.replication.tcp.resource import ReplicationStreamProtocolFactory from synapse.rest import ClientRestResource -from synapse.rest.key.v1.server_key_resource import LocalKey from synapse.rest.key.v2 import KeyApiV2Resource from synapse.rest.media.v0.content_repository import ContentRepoResource from synapse.server import HomeServer @@ -236,10 +234,7 @@ class SynapseHomeServer(HomeServer): ) if name in ["keys", "federation"]: - resources.update({ - SERVER_KEY_PREFIX: LocalKey(self), - SERVER_KEY_V2_PREFIX: KeyApiV2Resource(self), - }) + resources[SERVER_KEY_V2_PREFIX] = KeyApiV2Resource(self) if name == "webclient": resources[WEB_CLIENT_PREFIX] = build_resource_for_web_client(self) |