urls.py 1.1 KB

123456789101112131415161718192021222324252627
  1. # -*- coding: utf-8 -*-
  2. # Copyright 2014, 2015 OpenMarket Ltd
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. """Contains the URL paths to prefix various aspects of the server with. """
  16. CLIENT_PREFIX = "/_matrix/client/api/v1"
  17. CLIENT_V2_ALPHA_PREFIX = "/_matrix/client/v2_alpha"
  18. FEDERATION_PREFIX = "/_matrix/federation/v1"
  19. STATIC_PREFIX = "/_matrix/static"
  20. WEB_CLIENT_PREFIX = "/_matrix/client"
  21. CONTENT_REPO_PREFIX = "/_matrix/content"
  22. SERVER_KEY_PREFIX = "/_matrix/key/v1"
  23. SERVER_KEY_V2_PREFIX = "/_matrix/key/v2"
  24. MEDIA_PREFIX = "/_matrix/media/v1"
  25. APP_SERVICE_PREFIX = "/_matrix/appservice/v1"