mirror of
https://github.com/D4M13N-D3V/comissions-app-ui.git
synced 2025-03-14 00:05:07 +00:00
9 lines
339 B
TypeScript
9 lines
339 B
TypeScript
export default async function handler(req, res): Promise<any> {
|
|
let url = process.env.NEXT_PUBLIC_API_URL+`/api/Discovery/Artists`;
|
|
const response = await fetch(url);
|
|
if (!response.ok) {
|
|
throw new Error('Failed to fetch sellers');
|
|
}
|
|
let parsedJson = await response.json();
|
|
res.status(200).json(parsedJson);
|
|
} |