Skip to content

Commit

Permalink
clean up project backend files
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmostafa committed Feb 12, 2025
1 parent 948349f commit 1773e73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions api/src/routes/payload_models/project_models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from typing import Optional
from pydantic import BaseModel, EmailStr
from pydantic import BaseModel


class ProjectModel(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion api/src/routes/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async def get_projects(token: str = Depends(JWTBearer())):


@router.post("/project/create/", dependencies=[Depends(JWTBearer())])
async def register_user(project: ProjectModel, token: str = Depends(JWTBearer())):
async def create_project(project: ProjectModel, token: str = Depends(JWTBearer())):
"""Register a new user."""

payload = project.model_dump()
Expand Down

0 comments on commit 1773e73

Please sign in to comment.