server.js 330 Bytes
const express = require('express')
const path = require("path")

var app = express()

const PORT = 1697;

app.use("/public", express.static('./public'));

app.get("/*", (req, res) => {
	res.sendFile(path.join(__dirname, "./public/index.html"))
})

var serv = app.listen(PORT, () => console.log(`Serveur lauched on port ${PORT}`))