fix(router.py): fix trailing slash handling for api base which contains /v1

This commit is contained in:
Krrish Dholakia 2024-04-27 17:36:05 -07:00
parent 9850a81879
commit e322b8a1f8
2 changed files with 4 additions and 0 deletions

View file

@ -1994,6 +1994,8 @@ class Router:
# check if it ends with a trailing slash
if api_base.endswith("/"):
api_base += "v1/"
elif api_base.endswith("/v1"):
api_base += "/"
else:
api_base += "/v1/"