mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2026-06-04 21:25:44 -04:00
Show url_prefix in spec
This commit is contained in:
@@ -1276,6 +1276,7 @@ def create_app(args):
|
||||
limiter.init_app(app)
|
||||
|
||||
swag = swagger(app)
|
||||
swag["basePath"] = args.url_prefix if args.url_prefix != "" else "/"
|
||||
swag["info"]["version"] = get_version()
|
||||
swag["info"]["title"] = "LibreTranslate"
|
||||
swag["info"]["description"] = "Free and Open Source Machine Translation API."
|
||||
|
||||
Reference in New Issue
Block a user