Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Matić committed Oct 2, 2023
1 parent 9639c0d commit 877cd96
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ const port = 3000

app.set('view engine', 'ejs')

app.use(express.static(__dirname + '/public'));

app.listen(port, () => {
console.log(`Server listening on port ${port}`)
})

app.get('/', (req, res) => {
res.render('index.ejs')
Expand All @@ -21,6 +19,6 @@ app.get('/mylinks', (req, res) => {
res.render('mylinks.ejs')
})



app.use(express.static(__dirname + '/public'));
app.listen(port, () => {
console.log(`Server listening on port ${port}`)
})

0 comments on commit 877cd96

Please sign in to comment.