diff --git a/app.js b/app.js index f924702..6a84523 100644 --- a/app.js +++ b/app.js @@ -32,6 +32,7 @@ var newRouter = require('./routes/main/2_0'); var listRouter = require('./routes/list'); var photosRouter = require('./routes/api/photoRouter'); var movieRouter = require('./routes/api/movieRouter'); +var mailRouter = require('./routes/mail'); var app = express(); @@ -76,6 +77,7 @@ app.use('/old', oldRouter); app.use('/list', listRouter); app.use('/api/photos', photosRouter); app.use('/api/movies', movieRouter); +app.use('/mail', mailRouter); // catch 404 and forward to error handler app.use(function(req, res, next) { diff --git a/routes/mail.js b/routes/mail.js new file mode 100644 index 0000000..52352a2 --- /dev/null +++ b/routes/mail.js @@ -0,0 +1,10 @@ +var express = require('express'); + +var router = express.Router(); + +/* GET home page. */ +router.get('/', function(req, res, next) { + res.redirect('https://privateemail.com/'); +}); + +module.exports = router; \ No newline at end of file