mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-15 09:32:22 +03:00
1f21c6d7f3
# Description Move some folders to packages Remove unused code
23 lines
494 B
Python
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)
|