Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- get.index = function (req, res) {
- if(req.secure) {
- res.render('index', { title: 'Welcome' });
- } else {
- res.redirect(301, 'https://mydomain.com/');
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement