Added pages to rerun python
This commit is contained in:
		
							parent
							
								
									fcfa735c78
								
							
						
					
					
						commit
						89499d578c
					
				
							
								
								
									
										10
									
								
								server.js
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								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, () => {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user