Skip to content

Commit 3e97e4a

Browse files
committed
Update default version in prefix_url function to 1
1 parent 090155f commit 3e97e4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ async def home():
3535
from .hello import routes as hello_routes
3636
from .version import routes as version_routes
3737

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('/')}"
38+
def prefix_url(path: str, version: int = 1) -> str:
39+
return f"/{config['BASE_URI'].strip('/')}{f'/v{version}' if version else ''}/{path.strip('/')}"
4040

4141
app.include_router(healthcheck_routes.router, prefix="/healthcheck")
4242
app.include_router(version_routes.router, prefix=prefix_url("version"))

0 commit comments

Comments
 (0)