Attach a timestamp to the list of draggables for the client
This commit is contained in:
parent
7a78be42c4
commit
a3d79b6ef7
3
app.js
3
app.js
|
@ -192,7 +192,8 @@ app.get('/events', function(req, res) {
|
|||
// page for getting/setting the state (positions) of the draggables.
|
||||
app.get('/draggables', function(req, res) {
|
||||
// Retrieve the current status of the draggables and return in JSON format.
|
||||
res.send(draggables);
|
||||
res.send({ timestamp: currentTimestamp(),
|
||||
list: draggables });
|
||||
});
|
||||
|
||||
// The upload controller: handles uploads from the main site. This can
|
||||
|
|
Reference in New Issue