initial commit
This commit is contained in:
23
server.js
Normal file
23
server.js
Normal file
@@ -0,0 +1,23 @@
|
||||
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}`);
|
||||
});
|
||||
Reference in New Issue
Block a user