mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: implement usage limits across the app
This commit is contained in:
parent
85ffb44d93
commit
a5fbf49304
15 changed files with 281 additions and 160 deletions
|
|
@ -92,17 +92,17 @@ async def api_update_activity(
|
|||
)
|
||||
|
||||
|
||||
@router.delete("/{activity_id}")
|
||||
@router.delete("/{activity_uuid}")
|
||||
async def api_delete_activity(
|
||||
request: Request,
|
||||
activity_id: str,
|
||||
activity_uuid: str,
|
||||
current_user: PublicUser = Depends(get_current_user),
|
||||
db_session=Depends(get_db_session),
|
||||
):
|
||||
"""
|
||||
Delete activity by activity_id
|
||||
"""
|
||||
return await delete_activity(request, activity_id, current_user, db_session)
|
||||
return await delete_activity(request, activity_uuid, current_user, db_session)
|
||||
|
||||
|
||||
# Video activity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue