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
377 B
JavaScript

const express = require('express');
const app = express();
const port = 2255;
app.use(express.static(`assets`));
app.listen(port, `127.0.0.1`);
console.log(`Portfolio online on port : ` + port);
app.get('/', (req, res) => {
res.sendFile(__dirname + `/index.html`);
})
app.get('/fr-FR', (req, res) => {
res.sendFile(__dirname + `/french.html`);
})