diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-01-22 16:10:07 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-01-22 16:10:07 +0000 |
commit | 97c68c508dac6b4b3203b3bc475ffdfd185b6e03 (patch) | |
tree | 92fdec56ec4dc8836f9bf92ea4914a404702b1ef /synapse | |
parent | Move client v1 api rest servlets into a "client/v1" directory (diff) | |
download | synapse-97c68c508dac6b4b3203b3bc475ffdfd185b6e03.tar.xz |
Move rest APIs back under the rest directory
Diffstat (limited to '')
-rwxr-xr-x | synapse/app/homeserver.py | 4 | ||||
-rw-r--r-- | synapse/rest/__init__.py (renamed from synapse/client/__init__.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/__init__.py | 14 | ||||
-rw-r--r-- | synapse/rest/client/v1/__init__.py (renamed from synapse/client/v1/__init__.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/admin.py (renamed from synapse/client/v1/admin.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/base.py (renamed from synapse/client/v1/base.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/directory.py (renamed from synapse/client/v1/directory.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/events.py (renamed from synapse/client/v1/events.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/initial_sync.py (renamed from synapse/client/v1/initial_sync.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/login.py (renamed from synapse/client/v1/login.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/presence.py (renamed from synapse/client/v1/presence.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/profile.py (renamed from synapse/client/v1/profile.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/register.py (renamed from synapse/client/v1/register.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/room.py (renamed from synapse/client/v1/room.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/transactions.py (renamed from synapse/client/v1/transactions.py) | 0 | ||||
-rw-r--r-- | synapse/rest/client/v1/voip.py (renamed from synapse/client/v1/voip.py) | 0 | ||||
-rw-r--r-- | synapse/rest/media/__init__.py (renamed from synapse/media/__init__.py) | 0 | ||||
-rw-r--r-- | synapse/rest/media/v0/__init__.py (renamed from synapse/media/v0/__init__.py) | 0 | ||||
-rw-r--r-- | synapse/rest/media/v0/content_repository.py (renamed from synapse/media/v0/content_repository.py) | 0 | ||||
-rw-r--r-- | synapse/rest/media/v1/__init__.py (renamed from synapse/media/v1/__init__.py) | 0 | ||||
-rw-r--r-- | synapse/rest/media/v1/base_resource.py (renamed from synapse/media/v1/base_resource.py) | 0 | ||||
-rw-r--r-- | synapse/rest/media/v1/download_resource.py (renamed from synapse/media/v1/download_resource.py) | 0 | ||||
-rw-r--r-- | synapse/rest/media/v1/filepath.py (renamed from synapse/media/v1/filepath.py) | 0 | ||||
-rw-r--r-- | synapse/rest/media/v1/media_repository.py (renamed from synapse/media/v1/media_repository.py) | 0 | ||||
-rw-r--r-- | synapse/rest/media/v1/thumbnail_resource.py (renamed from synapse/media/v1/thumbnail_resource.py) | 0 | ||||
-rw-r--r-- | synapse/rest/media/v1/thumbnailer.py (renamed from synapse/media/v1/thumbnailer.py) | 0 | ||||
-rw-r--r-- | synapse/rest/media/v1/upload_resource.py (renamed from synapse/media/v1/upload_resource.py) | 0 | ||||
-rw-r--r-- | synapse/server.py | 2 |
28 files changed, 17 insertions, 3 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index afe3d19760..cd24bbdc79 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -26,8 +26,8 @@ from twisted.web.resource import Resource from twisted.web.static import File from twisted.web.server import Site from synapse.http.server import JsonResource, RootRedirect -from synapse.media.v0.content_repository import ContentRepoResource -from synapse.media.v1.media_repository import MediaRepositoryResource +from synapse.rest.media.v0.content_repository import ContentRepoResource +from synapse.rest.media.v1.media_repository import MediaRepositoryResource from synapse.http.server_key_resource import LocalKey from synapse.http.matrixfederationclient import MatrixFederationHttpClient from synapse.api.urls import ( diff --git a/synapse/client/__init__.py b/synapse/rest/__init__.py index 1a84d94cd9..1a84d94cd9 100644 --- a/synapse/client/__init__.py +++ b/synapse/rest/__init__.py diff --git a/synapse/rest/client/__init__.py b/synapse/rest/client/__init__.py new file mode 100644 index 0000000000..1a84d94cd9 --- /dev/null +++ b/synapse/rest/client/__init__.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +# Copyright 2015 OpenMarket Ltd +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/synapse/client/v1/__init__.py b/synapse/rest/client/v1/__init__.py index 88ec9cd27d..88ec9cd27d 100644 --- a/synapse/client/v1/__init__.py +++ b/synapse/rest/client/v1/__init__.py diff --git a/synapse/client/v1/admin.py b/synapse/rest/client/v1/admin.py index 0aa83514c8..0aa83514c8 100644 --- a/synapse/client/v1/admin.py +++ b/synapse/rest/client/v1/admin.py diff --git a/synapse/client/v1/base.py b/synapse/rest/client/v1/base.py index d005206b77..d005206b77 100644 --- a/synapse/client/v1/base.py +++ b/synapse/rest/client/v1/base.py diff --git a/synapse/client/v1/directory.py b/synapse/rest/client/v1/directory.py index 7ff44fdd9e..7ff44fdd9e 100644 --- a/synapse/client/v1/directory.py +++ b/synapse/rest/client/v1/directory.py diff --git a/synapse/client/v1/events.py b/synapse/rest/client/v1/events.py index c2515528ac..c2515528ac 100644 --- a/synapse/client/v1/events.py +++ b/synapse/rest/client/v1/events.py diff --git a/synapse/client/v1/initial_sync.py b/synapse/rest/client/v1/initial_sync.py index b13d56b286..b13d56b286 100644 --- a/synapse/client/v1/initial_sync.py +++ b/synapse/rest/client/v1/initial_sync.py diff --git a/synapse/client/v1/login.py b/synapse/rest/client/v1/login.py index 6b8deff67b..6b8deff67b 100644 --- a/synapse/client/v1/login.py +++ b/synapse/rest/client/v1/login.py diff --git a/synapse/client/v1/presence.py b/synapse/rest/client/v1/presence.py index ca4d2d21f0..ca4d2d21f0 100644 --- a/synapse/client/v1/presence.py +++ b/synapse/rest/client/v1/presence.py diff --git a/synapse/client/v1/profile.py b/synapse/rest/client/v1/profile.py index dc6eb424b0..dc6eb424b0 100644 --- a/synapse/client/v1/profile.py +++ b/synapse/rest/client/v1/profile.py diff --git a/synapse/client/v1/register.py b/synapse/rest/client/v1/register.py index e3b26902d9..e3b26902d9 100644 --- a/synapse/client/v1/register.py +++ b/synapse/rest/client/v1/register.py diff --git a/synapse/client/v1/room.py b/synapse/rest/client/v1/room.py index 48bba2a5f3..48bba2a5f3 100644 --- a/synapse/client/v1/room.py +++ b/synapse/rest/client/v1/room.py diff --git a/synapse/client/v1/transactions.py b/synapse/rest/client/v1/transactions.py index d933fea18a..d933fea18a 100644 --- a/synapse/client/v1/transactions.py +++ b/synapse/rest/client/v1/transactions.py diff --git a/synapse/client/v1/voip.py b/synapse/rest/client/v1/voip.py index 011c35e69b..011c35e69b 100644 --- a/synapse/client/v1/voip.py +++ b/synapse/rest/client/v1/voip.py diff --git a/synapse/media/__init__.py b/synapse/rest/media/__init__.py index e69de29bb2..e69de29bb2 100644 --- a/synapse/media/__init__.py +++ b/synapse/rest/media/__init__.py diff --git a/synapse/media/v0/__init__.py b/synapse/rest/media/v0/__init__.py index e69de29bb2..e69de29bb2 100644 --- a/synapse/media/v0/__init__.py +++ b/synapse/rest/media/v0/__init__.py diff --git a/synapse/media/v0/content_repository.py b/synapse/rest/media/v0/content_repository.py index 79ae0e3d74..79ae0e3d74 100644 --- a/synapse/media/v0/content_repository.py +++ b/synapse/rest/media/v0/content_repository.py diff --git a/synapse/media/v1/__init__.py b/synapse/rest/media/v1/__init__.py index d6c6690577..d6c6690577 100644 --- a/synapse/media/v1/__init__.py +++ b/synapse/rest/media/v1/__init__.py diff --git a/synapse/media/v1/base_resource.py b/synapse/rest/media/v1/base_resource.py index 688e7376ad..688e7376ad 100644 --- a/synapse/media/v1/base_resource.py +++ b/synapse/rest/media/v1/base_resource.py diff --git a/synapse/media/v1/download_resource.py b/synapse/rest/media/v1/download_resource.py index c585bb11f7..c585bb11f7 100644 --- a/synapse/media/v1/download_resource.py +++ b/synapse/rest/media/v1/download_resource.py diff --git a/synapse/media/v1/filepath.py b/synapse/rest/media/v1/filepath.py index ed9a58e9d9..ed9a58e9d9 100644 --- a/synapse/media/v1/filepath.py +++ b/synapse/rest/media/v1/filepath.py diff --git a/synapse/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py index 461cc001f1..461cc001f1 100644 --- a/synapse/media/v1/media_repository.py +++ b/synapse/rest/media/v1/media_repository.py diff --git a/synapse/media/v1/thumbnail_resource.py b/synapse/rest/media/v1/thumbnail_resource.py index 84f5e3463c..84f5e3463c 100644 --- a/synapse/media/v1/thumbnail_resource.py +++ b/synapse/rest/media/v1/thumbnail_resource.py diff --git a/synapse/media/v1/thumbnailer.py b/synapse/rest/media/v1/thumbnailer.py index 28404f2b7b..28404f2b7b 100644 --- a/synapse/media/v1/thumbnailer.py +++ b/synapse/rest/media/v1/thumbnailer.py diff --git a/synapse/media/v1/upload_resource.py b/synapse/rest/media/v1/upload_resource.py index b1718a630b..b1718a630b 100644 --- a/synapse/media/v1/upload_resource.py +++ b/synapse/rest/media/v1/upload_resource.py diff --git a/synapse/server.py b/synapse/server.py index 57a95bf753..e9add8e2b4 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -24,7 +24,7 @@ from synapse.events.utils import serialize_event from synapse.notifier import Notifier from synapse.api.auth import Auth from synapse.handlers import Handlers -from synapse.client.v1 import RestServletFactory +from synapse.rest.client.v1 import RestServletFactory from synapse.state import StateHandler from synapse.storage import DataStore from synapse.types import UserID, RoomAlias, RoomID, EventID |