You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
365 B
JavaScript
18 lines
365 B
JavaScript
3 years ago
|
const express = require('express');
|
||
|
const app = express();
|
||
|
const port = 2255;
|
||
|
|
||
|
app.use(express.static(`assets`));
|
||
|
|
||
|
app.listen(port, `127.0.0.1`);
|
||
|
|
||
|
console.log(`Portfolioen ligne sur le port : ` + port);
|
||
|
|
||
|
app.get('/', (req, res) => {
|
||
|
res.sendFile(__dirname + `/index.html`);
|
||
|
})
|
||
|
|
||
|
app.get('/fr-FR', (req, res) => {
|
||
|
res.sendFile(__dirname + `/french.html`);
|
||
|
})
|