Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
fix slashes for video
Browse files Browse the repository at this point in the history
  • Loading branch information
bigansh committed Aug 12, 2021
1 parent 295ff70 commit a6e3106
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ app.use(express.static('public', { redirect: false }))
app.use(expressSanitizer())
app.use(methodOverride('_method'))

const slashes = require('connect-slashes')
const mongoConnect = require('./connections/mongoConnect')
const blogRoute = require('./router/blogs')

Expand All @@ -20,7 +21,7 @@ app.get('/', (req, res) => {
res.render('index')
})

app.get('/videos', (req, res) => {
app.get('/videos', slashes(false), (req, res) => {
res.render('videos')
})

Expand Down

0 comments on commit a6e3106

Please sign in to comment.