From 89499d578c4436468be17d4a0a7970fef939842f Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Thu, 4 Apr 2019 11:48:21 +0200 Subject: [PATCH] Added pages to rerun python --- server.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server.js b/server.js index aaacae8..c53a54b 100644 --- a/server.js +++ b/server.js @@ -388,6 +388,16 @@ function startServer() { }); + app.get('/run-pytron-total', () => { + runPythonTotal(); + res.send('Received runPythonTotal'); + }); + + app.get('/run-pytron', () => { + runPython(); + res.send('Received runPython (refresh)'); + }); + app.use('/static', express.static('static')); app.listen(port, () => {