mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-08-11 09:13:48 -04:00
Show url_prefix in spec
This commit is contained in:
parent
5486497da7
commit
9e01786704
@ -1276,6 +1276,7 @@ def create_app(args):
|
|||||||
limiter.init_app(app)
|
limiter.init_app(app)
|
||||||
|
|
||||||
swag = swagger(app)
|
swag = swagger(app)
|
||||||
|
swag["basePath"] = args.url_prefix if args.url_prefix != "" else "/"
|
||||||
swag["info"]["version"] = get_version()
|
swag["info"]["version"] = get_version()
|
||||||
swag["info"]["title"] = "LibreTranslate"
|
swag["info"]["title"] = "LibreTranslate"
|
||||||
swag["info"]["description"] = "Free and Open Source Machine Translation API."
|
swag["info"]["description"] = "Free and Open Source Machine Translation API."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user