mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Merge pull request #21 from Hestia-Homes/main
Added api versioning - v1
This commit is contained in:
commit
ee25297170
2 changed files with 2 additions and 2 deletions
2
.github/workflows/deploy_fastapi_backend.yml
vendored
2
.github/workflows/deploy_fastapi_backend.yml
vendored
|
|
@ -53,4 +53,4 @@ jobs:
|
|||
ENVIRONMENT: ${{ github.ref_name }}
|
||||
SECRET_KEY: 'YOUR_SECRET_KEY'
|
||||
ALGORITHM: 'HS256'
|
||||
run: cd backend && sls deploy --stage ${{ github.ref_name }}
|
||||
run: cd backend && sls deploy --stage ${{ github.ref_name }} --verbose
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from app.config import get_settings
|
|||
app = FastAPI(dependencies=[Depends(validate_api_key)])
|
||||
|
||||
|
||||
app.include_router(portfolio_router.router)
|
||||
app.include_router(portfolio_router.router, prefix="/v1")
|
||||
|
||||
if get_settings().ENVIRONMENT == "local":
|
||||
from app.local import router as local_router
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue