Add a hook for custom rest endpoints

Let the user specify custom modules which can be used for implementing extra
endpoints.
This commit is contained in:
Richard van der Hoff 2017-11-02 14:18:24 +00:00
parent b19d9e2174
commit fcdfc911ee
3 changed files with 74 additions and 0 deletions

View file

@ -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