Skip to content

Commit

Permalink
Merge pull request #3 from Citronnelle/lesson1
Browse files Browse the repository at this point in the history
Routing fixes, script fixes and some minimum style
  • Loading branch information
Citronnelle authored Sep 9, 2019
2 parents a042e79 + db8486a commit f606306
Show file tree
Hide file tree
Showing 9 changed files with 405 additions and 18 deletions.
374 changes: 374 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ app.listen(process.env.PORT || PORT, () => {
console.log("Server started", PORT);
});

app.use(express.static('/web'))
app.use(express.static('web'))

app.get('/:name', function (req, res, next) {
var options = {
Expand All @@ -27,7 +27,7 @@ app.get('/:name', function (req, res, next) {
if (err) {
next(err)
} else {
console.log('Sent:', fileName)
console.log('Sent: ', fileName)
}
})
})
Loading

0 comments on commit f606306

Please sign in to comment.