summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-11-02 14:18:24 +0000
committerRichard van der Hoff <richard@matrix.org>2017-11-02 14:36:55 +0000
commitfcdfc911eef966ad6b1e0cbe9a4af5b1679d66bd (patch)
tree3afeea8a0844a126439924135f712069c9887afd /synapse/config
parentMerge pull request #2624 from matrix-org/rav/password_provider_notify_logout (diff)
downloadsynapse-fcdfc911eef966ad6b1e0cbe9a4af5b1679d66bd.tar.xz
Add a hook for custom rest endpoints
Let the user specify custom modules which can be used for implementing extra
endpoints.
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/server.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/config/server.py b/synapse/config/server.py
index b66993dab9..4d9193536d 100644
--- a/synapse/config/server.py
+++ b/synapse/config/server.py
@@ -247,6 +247,13 @@ class ServerConfig(Config):
               - names: [federation]  # Federation APIs
                 compress: false
 
+            # optional list of additional endpoints which can be loaded via
+            # dynamic modules
+            # additional_resources:
+            #   "/_matrix/my/custom/endpoint":
+            #     module: my_module.CustomRequestHandler
+            #     config: {}
+
           # Unsecure HTTP listener,
           # For when matrix traffic passes through loadbalancer that unwraps TLS.
           - port: %(unsecure_port)s