Rename endpoint to create_profile and add password (#77)

This commit is contained in:
nimaxin
2026-01-10 12:14:25 +03:30
committed by GitHub
parent 3f96300886
commit aeac01f285

View File

@@ -566,6 +566,7 @@ from pydantic import BaseModel, field_validator
class ProfileCreate(BaseModel):
username: str
password: str
@field_validator("password", mode="after")
@classmethod
@@ -589,7 +590,7 @@ router = APIRouter()
@router.post("/profiles")
async def get_creator_posts(profile_data: ProfileCreate):
async def create_profile(profile_data: ProfileCreate):
pass
```
**Response Example:**