Initialize dev environment

This commit is contained in:
2026-02-19 17:13:22 +08:00
parent f3220d8eb0
commit 65b9bfa5e7
18 changed files with 1081 additions and 7 deletions

1
app/__init__.py Normal file
View File

@@ -0,0 +1 @@
from app.routers import users

0
app/dependencies.py Normal file
View File

0
app/internal/__init__.py Normal file
View File

0
app/internal/admin.py Normal file
View File

11
app/main.py Normal file
View File

@@ -0,0 +1,11 @@
from fastapi import FastAPI
from app.routers import users
app = FastAPI()
app.include_router(users.router)
@app.get("/")
async def root():
return {"message": "Hello, World!"}

1
app/models/user.py Normal file
View File

@@ -0,0 +1 @@
from sqlmodel import Field, SQLModel

0
app/routers/__init__.py Normal file
View File

7
app/routers/users.py Normal file
View File

@@ -0,0 +1,7 @@
from fastapi import APIRouter
router = APIRouter(prefix="/users", tags=["users"])
@router.get("/")
async def get_users():
return {"message": "List of users"}