Implement the current route/controller

This commit is contained in:
Paul van Tilburg 2012-01-11 23:30:00 +01:00
parent a9d1626067
commit a4c4df2fe7

View file

@ -59,6 +59,7 @@ app.get('/draggable/:id', function(req, res) {
// for getting the current (global) state (positions) of the draggables.
app.get('/current', function(req, res) {
// Retrieve the current status of the draggables and return in JSON format.
res.send(draggables);
});
// The position save route: access through AJAX request by the main page