mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2026-03-13 10:32:25 +08:00
22 lines
295 B
Python
22 lines
295 B
Python
from fastapi import APIRouter
|
|
|
|
from ..factory import app
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get(
|
|
'/home',
|
|
)
|
|
async def home():
|
|
return {
|
|
'title': "Welcome to REST ADMIN"
|
|
}
|
|
|
|
|
|
@router.get(
|
|
'/site',
|
|
)
|
|
async def site():
|
|
return app.site.dict(by_alias=True, exclude_unset=True)
|