Skip to content

Commit

Permalink
feat(users): add handler functions to users.py router
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkweon17 committed Nov 10, 2023
1 parent 7a7746c commit 7db9f4d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/routers/users.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from fastapi import APIRouter, Depends, Response, Request, status
from sqlalchemy.orm import Session

from database import get_db
# from models import User

router = APIRouter()

router = APIRouter(previx="/users", tags=["users"], responses={404: {"description": "Not found"}})

# users 핸들러
@router.get("/")
async def get_users(db: Session = Depends(get_db)):
# users = db.query(User).all()
# return users
return {"message": "users"}

0 comments on commit 7db9f4d

Please sign in to comment.