Spaces:
Sleeping
Sleeping
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') | |
async def fetch_brands(current_user: dict = Depends(get_current_user)): | |
brands = await BrandDataSource.fetch_brands() | |
return {"result": brands} | |