add redirect to mail

This commit is contained in:
Nikola Petrov 2023-07-21 13:17:18 +02:00
parent 46231f5c7c
commit 3c4edcad36
2 changed files with 12 additions and 0 deletions

2
app.js
View File

@ -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) {

10
routes/mail.js Normal file
View File

@ -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;