mirror of
https://github.com/open-webui/mcpo
synced 2025-06-26 18:26:58 +00:00
finished renaming of prefix
This commit is contained in:
parent
20d2e91bf9
commit
ce81196fc2
@ -85,15 +85,15 @@ def main(
|
||||
os.environ[key] = value
|
||||
|
||||
# Whatever the prefix is, make sure it starts and ends with a /
|
||||
if prefix is None:
|
||||
if path_prefix is None:
|
||||
# Set default value
|
||||
prefix = "/"
|
||||
path_prefix = "/"
|
||||
# if prefix doesn't end with a /, add it
|
||||
if not prefix.endswith("/"):
|
||||
prefix = f"{prefix}/"
|
||||
if not path_prefix.endswith("/"):
|
||||
path_prefix = f"{path_prefix}/"
|
||||
# if prefix doesn't start with a /, add it
|
||||
if not prefix.startswith("/"):
|
||||
prefix = f"/{prefix}"
|
||||
if not path_prefix.startswith("/"):
|
||||
path_prefix = f"/{path_prefix}"
|
||||
|
||||
# Run your async run function from mcpo.main
|
||||
asyncio.run(
|
||||
|
Loading…
Reference in New Issue
Block a user