Rename endpoint to create_profile and add password (#77)
This commit is contained in:
@@ -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:**
|
||||
|
||||
Reference in New Issue
Block a user