We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 090155f commit 3e97e4aCopy full SHA for 3e97e4a
1 file changed
app/__init__.py
@@ -35,8 +35,8 @@ async def home():
35
from .hello import routes as hello_routes
36
from .version import routes as version_routes
37
38
- def prefix_url(path: str, version: int = 0) -> str:
39
- return f"/{config.get('BASE_URI').strip('/')}{f'/v{version}' if version else ''}/{path.strip('/')}"
+ def prefix_url(path: str, version: int = 1) -> str:
+ return f"/{config['BASE_URI'].strip('/')}{f'/v{version}' if version else ''}/{path.strip('/')}"
40
41
app.include_router(healthcheck_routes.router, prefix="/healthcheck")
42
app.include_router(version_routes.router, prefix=prefix_url("version"))
0 commit comments