Added pages to rerun python

This commit is contained in:
Thomas Forgione 2019-04-04 11:48:21 +02:00
parent fcfa735c78
commit 89499d578c
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 10 additions and 0 deletions

View File

@ -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, () => {