Skip to content

Commit

Permalink
Hotfix: add login requirement to DELETE route
Browse files Browse the repository at this point in the history
(we should probably just get rid of this route eventually)
  • Loading branch information
printer83mph committed Apr 24, 2024
1 parent 0dd1735 commit c3d6432
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/routers/api_v1/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ async def put_asset(
description="Based on `uuid`, deletes a specific asset.",
)
async def delete_asset(
db: Annotated[Session, Depends(get_db)],
token: Annotated[str, Depends(oauth2_scheme)],
uuid: str,
db: Session = Depends(get_db),
):
result = remove_asset(db, uuid)
if result is False:
Expand Down

0 comments on commit c3d6432

Please sign in to comment.