Initial backend hosting implementation

This commit is contained in:
Marco Rodolfi
2023-01-23 18:18:46 +01:00
parent 8da0395917
commit 5f455a01b7
28 changed files with 30 additions and 0 deletions
+2
View File
@@ -93,6 +93,7 @@ class PluginManager:
for route in list(self.web_app.router.routes()):
self.cors.add(route)
self.web_app.add_routes([static("/static", path.join(path.dirname(__file__), 'static'))])
self.web_app.add_routes([static("/locales", path.join(path.dirname(__file__), 'locales'))])
self.web_app.add_routes([static("/legacy", path.join(path.dirname(__file__), 'legacy'))])
def exception_handler(self, loop, context):
@@ -101,6 +102,7 @@ class PluginManager:
loop.default_exception_handler(context)
async def get_auth_token(self, request):
return Response(text=get_csrf_token())
async def load_plugins(self):