First version
This commit is contained in:
10
frontend/app/api/waiters/route.ts
Normal file
10
frontend/app/api/waiters/route.ts
Normal file
@ -0,0 +1,10 @@
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user