From 1fb09a9c8c0f4a3a7f936c80e8aa233b859c0045 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 28 Oct 2013 15:15:59 -0400 Subject: [PATCH] merging @deniswolf's new tests, and double-checking that generateUUID still works --- src/routes/debug.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/routes/debug.js b/src/routes/debug.js index 5b9298c42e..807b85eb78 100644 --- a/src/routes/debug.js +++ b/src/routes/debug.js @@ -1,13 +1,19 @@ var DebugRoute = function(app) { - var Notifications = require('../notifications'); - app.namespace('/debug', function() { app.get('/prune', function(req, res) { + var Notifications = require('../notifications'); + Notifications.prune(new Date(), function() { console.log('done'); }); res.send(); }); + + app.get('/uuidtest', function(req, res) { + var Utils = require('../../public/src/utils.js'); + + res.send(Utils.generateUUID()); + }); }); };