11 lines
229 B
TypeScript
11 lines
229 B
TypeScript
export async function GET() {
|
|
const res = await fetch('http://backend:8000/api/waiters', {
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
});
|
|
const data = await res.json();
|
|
|
|
return Response.json(data);
|
|
}
|