12 lines
306 B
Python
12 lines
306 B
Python
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())
|