fooder-api/fooder/view/tasks.py

14 lines
363 B
Python
Raw Normal View History

from fastapi import APIRouter, Depends, Request
2024-08-03 23:24:52 +02:00
from ..controller.tasks import CacheProductUsageData
router = APIRouter(prefix="/api", tags=["tasks"])
@router.post("/cache_product_usage_data")
2024-08-03 23:24:52 +02:00
async def cache_product_usage_data(
request: Request,
contoller: CacheProductUsageData = Depends(CacheProductUsageData),
):
return await contoller.call()