From a4c4df2fe743d9f2cc44a6d08a195b5f612ea2da Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Wed, 11 Jan 2012 23:30:00 +0100 Subject: [PATCH] Implement the current route/controller --- plemp.js | 1 + 1 file changed, 1 insertion(+) 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