feat: colors for card tags

This commit is contained in:
2025-03-13 19:29:15 +04:00
parent 15d63e35f4
commit 069bab1c01
4 changed files with 60 additions and 5 deletions

View File

@@ -61,3 +61,14 @@ async def switch_tag(
request: SwitchTagRequest,
):
return await CardTagService(session).switch_tag(request)
@card_tag_router.get(
'/colors',
response_model=GetTagColorsResponse,
operation_id='get_colors',
)
async def get_colors(
session: Annotated[AsyncSession, Depends(get_session)],
):
return await CardTagService(session).get_tag_colors()