Revert obsolete change
Signed-off-by: Antoine Mazeas <antoine@karthanis.net>
This commit is contained in:
parent
9d587e32f2
commit
3b603a2180
1 changed files with 1 additions and 2 deletions
|
@ -65,8 +65,7 @@ class MaubotServer:
|
||||||
|
|
||||||
def get_instance_subapp(self, instance_id: str) -> Tuple[PluginWebApp, str]:
|
def get_instance_subapp(self, instance_id: str) -> Tuple[PluginWebApp, str]:
|
||||||
subpath = self.config["server.plugin_base_path"] + instance_id
|
subpath = self.config["server.plugin_base_path"] + instance_id
|
||||||
path_prefix = self.config["server.public_url_path_prefix"].rstrip("/")
|
url = self.config["server.public_url"] + subpath
|
||||||
url = self.config["server.public_url"] + path_prefix + subpath
|
|
||||||
try:
|
try:
|
||||||
return self.plugin_routes[subpath], url
|
return self.plugin_routes[subpath], url
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
|
Loading…
Reference in a new issue