3 lines
86 B
JavaScript
3 lines
86 B
JavaScript
const orders = [];
|
|
setInterval(() => fetch('/api/orders').then(r => r.json()), 2000);
|