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):
|
class ProfileCreate(BaseModel):
|
||||||
username: str
|
username: str
|
||||||
|
password: str
|
||||||
|
|
||||||
@field_validator("password", mode="after")
|
@field_validator("password", mode="after")
|
||||||
@classmethod
|
@classmethod
|
||||||
@@ -589,7 +590,7 @@ router = APIRouter()
|
|||||||
|
|
||||||
|
|
||||||
@router.post("/profiles")
|
@router.post("/profiles")
|
||||||
async def get_creator_posts(profile_data: ProfileCreate):
|
async def create_profile(profile_data: ProfileCreate):
|
||||||
pass
|
pass
|
||||||
```
|
```
|
||||||
**Response Example:**
|
**Response Example:**
|
||||||
|
|||||||
Reference in New Issue
Block a user