From 3c4edcad365d05f51af2a8f145e877e1bea7f61a Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Fri, 21 Jul 2023 13:17:18 +0200 Subject: [PATCH] add redirect to mail --- app.js | 2 ++ routes/mail.js | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 routes/mail.js 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