Files
hub/js/app.js
2024-06-05 19:49:37 +02:00

14 lines
344 B
JavaScript

const express = require('express');
const path = require('path');
const app = express();
const port = 3000;
// Serve the index.html file at the root URL
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'index.html'));
});
app.listen(port, '0.0.0.0', () => {
console.log(`App listening at http://localhost:${port}`);
});