mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-30 17:50:39 -05:00
Co-authored-by: Yurii Motov <yurii.motov.monte@gmail.com> Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
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,
|
|
}
|