quivr/backend/routes/notification_routes.py
Zineb El Bachiri 1f21c6d7f3
refactor: packages folder be 2 (#1628)
# Description

Move some folders to packages
Remove unused code
2023-11-14 14:31:02 +01:00

23 lines
494 B
Python

from uuid import UUID
from fastapi import APIRouter, Depends
from middlewares.auth import AuthBearer
from repository.notification.get_chat_notifications import get_chat_notifications
notification_router = APIRouter()
@notification_router.get(
"/notifications/{chat_id}",
dependencies=[Depends(AuthBearer())],
tags=["Notification"],
)
async def get_notifications(
chat_id: UUID,
):
"""
Get notifications by chat_id
"""
return get_chat_notifications(chat_id)