from fastapi import APIRouter, Depends, Request from ..controller.tasks import CacheProductUsageData router = APIRouter(prefix="/api", tags=["tasks"]) @router.post("/cache_product_usage_data") async def cache_product_usage_data( request: Request, contoller: CacheProductUsageData = Depends(CacheProductUsageData), ): return await contoller.call()