Fixed leading '/' in router.py
All checks were successful
Amarillo/amarillo-gitea/amarillo-grfs-export/pipeline/head This commit looks good
All checks were successful
Amarillo/amarillo-gitea/amarillo-grfs-export/pipeline/head This commit looks good
This commit is contained in:
parent
386f81f6d4
commit
5a05d73ac1
|
|
@ -32,7 +32,7 @@ def _assert_region_exists(region_id: str) -> Region:
|
|||
return region
|
||||
|
||||
|
||||
@router.get("region/{region_id}/grfs",
|
||||
@router.get("/region/{region_id}/grfs/",
|
||||
summary="Return GRFS Feed for this region",
|
||||
response_description="GRFS-Feed (zip-file)",
|
||||
response_class=FileResponse,
|
||||
|
|
@ -44,7 +44,7 @@ async def get_file(region_id: str, user: str = Depends(verify_admin_api_key)):
|
|||
_assert_region_exists(region_id)
|
||||
return FileResponse(f'data/grfs/amarillo.{region_id}.gtfs.zip')
|
||||
|
||||
@router.get("region/{region_id}/grfs-rt",
|
||||
@router.get("/region/{region_id}/grfs-rt/",
|
||||
summary="Return GRFS-RT Feed for this region",
|
||||
response_description="GRFS-RT-Feed",
|
||||
response_class=FileResponse,
|
||||
|
|
|
|||
Loading…
Reference in a new issue