Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
PhonoDrop
Commits
58572681
Commit
58572681
authored
Apr 29, 2020
by
Sylvain Coulange
Browse files
ajout dirname
parent
c54d11d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.js
View file @
58572681
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment