Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

As discussed (discussions/24), this new parameter 'prefix' adds an op… #49

Merged

Conversation

MHugonKaliop
Copy link

Changelog Entry

Description

This pull request adds an option parameter "prefix".
If present, all the routes will be prefixed with this parameter.
Discussed here : #24

Added

Command line, optional parameter "--prefix mcpo" of "-x mcpo"

Changed

This parameter changes the "mount" option of every sub_app to apply this optional parameter

Deprecated

None

Removed

None

Fixed

None

Security

None

Breaking Changes

None


Additional Information

None

Screenshots or Videos

None

@@ -47,6 +47,9 @@ def main(
ssl_keyfile: Annotated[
Optional[str], typer.Option("--ssl-keyfile", "-k", help="SSL keyfile")
] = None,
prefix: Annotated[
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path_prefix

@tjbck
Copy link
Collaborator

tjbck commented Apr 4, 2025

Please resolve the conflicts as well!

@MHugonKaliop
Copy link
Author

done

@tjbck
Copy link
Collaborator

tjbck commented Apr 5, 2025

Thanks!

@tjbck tjbck merged commit e524107 into open-webui:dev Apr 5, 2025
@MHugonKaliop MHugonKaliop deleted the feat/add-prefix-from-discussion-24 branch April 5, 2025 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants