feat: удаление target chan только через telegram

This commit is contained in:
Artem Tsyrulnikov
2025-12-11 18:16:21 +03:00
parent 1f80d9bdfb
commit eb1005c995
5 changed files with 9 additions and 41 deletions

View File

@@ -1,4 +1,3 @@
import uuid
from typing import Annotated
from fastapi import Depends
@@ -19,16 +18,3 @@ async def get_user_target_chans(
)
return await deps.get_usecase().get_user_target_chans(input=input)
@target_channels_router.delete('/{channel_id}')
async def disconnect_target_chan(
channel_id: uuid.UUID,
current_user: Annotated[JWTPayload, Depends(deps.get_current_user)],
) -> None:
input = dto.DisconnectTargetChanInput(
channel_id=channel_id,
user_id=current_user.user_id,
)
await deps.get_usecase().disconnect_target_chan(input=input)