Skip to content

Commit

Permalink
TileAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
docuracy committed Dec 23, 2024
1 parent 259454f commit 426936f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tileserver/repository/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def fetch_all_tilesets():
raise HTTPException(status_code=500, detail=str(e))


@app.get("/{type}/{id}", response_model=Dict[str, Any])
@app.get("/{tileset_type}/{tileset_id}", response_model=Dict[str, Any])
async def fetch_tileset(tileset_type: str, tileset_id: int):
"""
Fetch tileset data for a specific dataset or collection.
Expand All @@ -66,7 +66,7 @@ async def fetch_tileset(tileset_type: str, tileset_id: int):
raise HTTPException(status_code=500, detail=str(e))


@app.delete("/{type}/{id}", response_model=DeleteResponse)
@app.delete("/{tileset_type}/{tileset_id}", response_model=DeleteResponse)
def remove_tileset(tileset_type: str, tileset_id: str):
"""
Delete tileset data and associated MBTiles files for a specific dataset or collection.
Expand Down

0 comments on commit 426936f

Please sign in to comment.