Currently, this module redirects /mypage to /mypage/. I'd like to do the reverse: redirect /mypage/ to /mypage. I prefer this method because 1) historically a trailing slash signifies a directory and 2) I just like the look of it better. This could be implemented with a config option like:
const slash = require('express-slash')
app.use(slash({mode: 'NOSLASH'}))
Currently, this module redirects
/mypageto/mypage/. I'd like to do the reverse: redirect/mypage/to/mypage. I prefer this method because 1) historically a trailing slash signifies a directory and 2) I just like the look of it better. This could be implemented with a config option like: