2024-05-21 11:11:47 +02:00
|
|
|
from fastapi import APIRouter, Depends, Request
|
|
|
|
|
2024-08-03 23:24:52 +02:00
|
|
|
from ..controller.tasks import CacheProductUsageData
|
2024-05-21 11:11:47 +02:00
|
|
|
|
|
|
|
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(
|
2024-05-21 11:11:47 +02:00
|
|
|
request: Request,
|
|
|
|
contoller: CacheProductUsageData = Depends(CacheProductUsageData),
|
|
|
|
):
|
|
|
|
return await contoller.call()
|