fooder-api/fooder/view/tasks.py
Piotr Domański 5bc37bc127
Some checks are pending
Python lint and test / linttest (push) Waiting to run
[cron] add dockerfile
2024-08-03 23:24:52 +02:00

13 lines
363 B
Python

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()