Attach a timestamp to the list of draggables for the client

This commit is contained in:
Paul van Tilburg 2012-02-09 10:25:26 +01:00
parent 7a78be42c4
commit a3d79b6ef7
1 changed files with 2 additions and 1 deletions

3
app.js
View File

@ -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