From e692e9b4dec86a5839a3295597e01cf80ca2860a Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 7 Mar 2025 18:57:12 +0000 Subject: [PATCH] feat: Update endpoint /comments --- app/api/endpoints/comments.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/api/endpoints/comments.py b/app/api/endpoints/comments.py index c1f3241..72c6e40 100644 --- a/app/api/endpoints/comments.py +++ b/app/api/endpoints/comments.py @@ -1,13 +1,13 @@ -from fastapi import APIRouter, HTTPException -from pydantic import BaseModel - -router = APIRouter() - -class UserRegistration(BaseModel): - username: str - password: str - email: str - -@router.post("/signup") -async def signup(user: UserRegistration): +from fastapi import APIRouter, HTTPException +from pydantic import BaseModel + +router = APIRouter() + +class UserRegistration(BaseModel): + username: "sam" + password: str + email: str + +@router.post("/signup") +async def signup(user: UserRegistration): return {"message": "User registered successfully. Whooo!", "user": user.username} \ No newline at end of file