Update main.py
Browse files
main.py
CHANGED
@@ -18,7 +18,7 @@ def get_db():
|
|
18 |
|
19 |
user_router = APIRouter(prefix="/user")
|
20 |
|
21 |
-
@user_router.post("/users/", response_model=schemas.User, tags=["users")
|
22 |
def create_user(user: schemas.UserCreate, db: Session = Depends(get_db)):
|
23 |
db_user = crud.get_user_by_email(db, email=user.email)
|
24 |
if db_user:
|
|
|
18 |
|
19 |
user_router = APIRouter(prefix="/user")
|
20 |
|
21 |
+
@user_router.post("/users/", response_model=schemas.User, tags=["users"])
|
22 |
def create_user(user: schemas.UserCreate, db: Session = Depends(get_db)):
|
23 |
db_user = crud.get_user_by_email(db, email=user.email)
|
24 |
if db_user:
|