mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-25 15:18:36 -05:00
15 lines
267 B
Python
15 lines
267 B
Python
from fastapi import FastAPI
|
|
|
|
from .config import settings
|
|
|
|
app = FastAPI()
|
|
|
|
|
|
@app.get("/info")
|
|
async def info():
|
|
return {
|
|
"app_name": settings.app_name,
|
|
"admin_email": settings.admin_email,
|
|
"items_per_user": settings.items_per_user,
|
|
}
|