From 13a74ba56027b73acadd9758db4830c905f05bfa Mon Sep 17 00:00:00 2001 From: Michael Schmatz Date: Sat, 22 Mar 2014 09:17:14 -0700 Subject: [PATCH] Added resimulateAllSessions route --- server/routes/queue.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/routes/queue.coffee b/server/routes/queue.coffee index 10af6875f..18d8cc80b 100644 --- a/server/routes/queue.coffee +++ b/server/routes/queue.coffee @@ -14,6 +14,10 @@ module.exports.setup = (app) -> handler = loadQueueHandler 'scoring' handler.messagesInQueueCount req, res + app.post '/queue/scoring/resimulateAllSessions', (req, res) -> + handler = loadQueueHandler 'scoring' + handler.resimulateAllSessions req, res + app.all '/queue/*', (req, res) -> setResponseHeaderToJSONContentType res