Piotr Domański
5bc37bc127
Some checks are pending
Python lint and test / linttest (push) Waiting to run
13 lines
363 B
Python
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()
|