dev
This commit is contained in:
11
domain-api/app/api/routes/dashboard.py
Normal file
11
domain-api/app/api/routes/dashboard.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from fastapi import APIRouter
|
||||
|
||||
from app.schemas.common import ApiResponse
|
||||
from app.services.dashboard import fetch_overview
|
||||
|
||||
router = APIRouter(tags=["dashboard"])
|
||||
|
||||
|
||||
@router.get("/dashboard/overview", response_model=ApiResponse)
|
||||
def overview() -> ApiResponse:
|
||||
return ApiResponse(data=fetch_overview())
|
||||
Reference in New Issue
Block a user