Commit 58572681 authored by Sylvain Coulange's avatar Sylvain Coulange

ajout dirname

parent c54d11d9
......@@ -16,7 +16,7 @@ app.listen(port, () => console.log(`Listening on port ${port}...`));
app.use(express.json());
app.use(express.static('public'));
app.use(express.static(__dirname + '/public'));
//app.use('/static', express.static(__dirname + '/public'));
app.use(compression()); // Compress all routes
app.use(helmet()); // Protection de base pour l'appli
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment