yashmakan's picture
files added
bf2bf0e
raw
history blame contribute delete
417 Bytes
from api.sources.user.data_sources.brand import BrandDataSource
from api.sources.user.request_params.brand import *
from fastapi import APIRouter, Depends
from core.depends.oauth import get_current_user
router = APIRouter(prefix='/brand')
@router.get("/fetch")
async def fetch_brands(current_user: dict = Depends(get_current_user)):
brands = await BrandDataSource.fetch_brands()
return {"result": brands}