Fix routing end slash
This commit is contained in:
parent
d7085c6785
commit
4f2a376f8f
1 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ from app.models.user import User, UserIn
|
|||
router = APIRouter(prefix="/users", tags=["users"])
|
||||
|
||||
|
||||
@router.get("/")
|
||||
@router.get("")
|
||||
def fetch_users():
|
||||
users = get_users()
|
||||
if not users:
|
||||
|
|
@ -27,7 +27,7 @@ def fetch_users():
|
|||
return [User.model_validate(user) for user in users]
|
||||
|
||||
|
||||
@router.post("/")
|
||||
@router.post("")
|
||||
async def create_user(user_in: UserIn):
|
||||
user = save_user(user_in)
|
||||
access_token_expires = timedelta(minutes=settings.access_token_expire_minutes)
|
||||
|
|
|
|||
Loading…
Reference in a new issue