23 lines
369 B
Python
23 lines
369 B
Python
|
from fastapi import APIRouter
|
||
|
|
||
|
from .user_router_helper import fastapi_users
|
||
|
from config import settings
|
||
|
from schemas.user import (
|
||
|
UserRead,
|
||
|
UserUpdate,
|
||
|
)
|
||
|
|
||
|
router = APIRouter(
|
||
|
prefix=settings.prefix.users,
|
||
|
tags=["Users"],
|
||
|
)
|
||
|
|
||
|
# /me
|
||
|
# /{id}
|
||
|
router.include_router(
|
||
|
router=fastapi_users.get_users_router(
|
||
|
UserRead,
|
||
|
UserUpdate,
|
||
|
),
|
||
|
)
|