add users routers
This commit is contained in:
parent
1c35503762
commit
524b4763b7
0
app/__init__.py
Normal file
0
app/__init__.py
Normal file
0
app/main.py
Normal file
0
app/main.py
Normal file
7
app/routers/users.py
Normal file
7
app/routers/users.py
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
from fastapi import APIRouter
|
||||||
|
|
||||||
|
router = APIRouter()
|
||||||
|
|
||||||
|
@router.get("/users/", tags=["users"])
|
||||||
|
async def read_users():
|
||||||
|
return [{"username":"toto"}]
|
2
requierements.txt
Normal file
2
requierements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fastapi
|
||||||
|
uvicorn[standard]
|
Loading…
x
Reference in New Issue
Block a user