From 524b4763b7860d18062e4727e923080679b85d81 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Tue, 10 Oct 2023 22:13:47 +0200 Subject: [PATCH] add users routers --- app/__init__.py | 0 app/main.py | 0 app/routers/users.py | 7 +++++++ requierements.txt | 2 ++ 4 files changed, 9 insertions(+) create mode 100644 app/__init__.py create mode 100644 app/main.py create mode 100644 app/routers/users.py create mode 100644 requierements.txt diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/app/main.py b/app/main.py new file mode 100644 index 0000000..e69de29 diff --git a/app/routers/users.py b/app/routers/users.py new file mode 100644 index 0000000..e3352a8 --- /dev/null +++ b/app/routers/users.py @@ -0,0 +1,7 @@ +from fastapi import APIRouter + +router = APIRouter() + +@router.get("/users/", tags=["users"]) +async def read_users(): + return [{"username":"toto"}] \ No newline at end of file diff --git a/requierements.txt b/requierements.txt new file mode 100644 index 0000000..8e0578a --- /dev/null +++ b/requierements.txt @@ -0,0 +1,2 @@ +fastapi +uvicorn[standard] \ No newline at end of file