mirror of
https://github.com/D4M13N-D3V/comissions-app-ui.git
synced 2025-03-13 07:45:07 +00:00
14 lines
431 B
TypeScript
14 lines
431 B
TypeScript
export default async function handler(req, res ): Promise<any> {
|
|
const { sellerId } = req.query;
|
|
var url = process.env.NEXT_PUBLIC_API_URL+`/api/Discovery/Artists/${sellerId}/Reviews/Count`;
|
|
(url)
|
|
const response = await fetch(url);
|
|
if (!response.ok) {
|
|
throw new Error('Failed to fetch seller portfolio');
|
|
}
|
|
var result = await response.json();
|
|
(result)
|
|
res.status(200).json(result);
|
|
}
|
|
|