fastapi-test/app/main.py

21 lines
406 B
Python
Raw Normal View History

2025-03-20 22:30:13 +11:00
from fastapi import Depends, FastAPI
from .internal import admin
from .routers import items, users
app = FastAPI()
app.include_router(users.router)
app.include_router(items.router)
app.include_router(
admin.router,
prefix="/admin",
tags=["admin"],
responses={418: {"description": "I'm a teapot"}},
)
@app.get("/")
async def root():
return {"message": "Hello Bigger Applications!"}