mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 15:44:10 -04:00
Added a -w flag which will host the web client if specified. Currently this just delegates to the webclient RestServlet.
This commit is contained in:
parent
ebfc4389ad
commit
7f40fa1d46
5 changed files with 65 additions and 48 deletions
|
@ -15,9 +15,11 @@
|
|||
|
||||
|
||||
from . import (
|
||||
room, events, register, login, profile, public, presence, im, directory
|
||||
room, events, register, login, profile, public, presence, im, directory,
|
||||
webclient
|
||||
)
|
||||
|
||||
|
||||
class RestServletFactory(object):
|
||||
|
||||
""" A factory for creating REST servlets.
|
||||
|
@ -42,3 +44,7 @@ class RestServletFactory(object):
|
|||
presence.register_servlets(hs, http_server)
|
||||
im.register_servlets(hs, http_server)
|
||||
directory.register_servlets(hs, http_server)
|
||||
|
||||
def register_web_client(self, hs):
|
||||
http_server = hs.get_http_server()
|
||||
webclient.register_servlets(hs, http_server)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue