users api done

This commit is contained in:
andrei-mihnea-cerbu
2024-01-09 03:06:03 +02:00
parent 6ece0f37b1
commit f80b8c38db
35 changed files with 221 additions and 11 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
from fastapi import APIRouter
from messenger_app.api.v1.models.message import Message
from api.v1.models.message import Message
router = APIRouter()
@router.post("/messages/", response_model=Message)
async def create_message(message: Message):
# You would typically save the message to the database here