diff --git a/plemp.js b/plemp.js index b2d9bae..e83dd5c 100644 --- a/plemp.js +++ b/plemp.js @@ -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