mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 09:31:20 -04:00
spectation
This commit is contained in:
@@ -8,6 +8,9 @@ const app = express();
|
||||
app.use(morgan('dev'));
|
||||
app.use(express.json());
|
||||
app.use(express.static(config.staticDir));
|
||||
app.get('/spectate', (req, res) => {
|
||||
res.sendFile(path.join(config.staticDir, 'index.html'));
|
||||
});
|
||||
|
||||
const httpServer = http.createServer(app);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user