24 lines
565 B
JavaScript
24 lines
565 B
JavaScript
const express = require('express');
|
|
const path = require('path');
|
|
|
|
const app = express();
|
|
const port = 8005;
|
|
|
|
app.use('/public', express.static(path.join(__dirname, 'public')));
|
|
|
|
app.get('/', (req, res) => {
|
|
res.sendFile(path.join(__dirname, 'index.html'));
|
|
});
|
|
|
|
app.get('/mentions-legales', (req, res) => {
|
|
res.sendFile(path.join(__dirname, 'mention-legal.html'));
|
|
});
|
|
|
|
app.get('/eula', (req, res) => {
|
|
res.sendFile(path.join(__dirname, 'eula.html'));
|
|
});
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Server is running on http://localhost:${port}`);
|
|
});
|