add redirect to mail
This commit is contained in:
parent
46231f5c7c
commit
3c4edcad36
2
app.js
2
app.js
@ -32,6 +32,7 @@ var newRouter = require('./routes/main/2_0');
|
|||||||
var listRouter = require('./routes/list');
|
var listRouter = require('./routes/list');
|
||||||
var photosRouter = require('./routes/api/photoRouter');
|
var photosRouter = require('./routes/api/photoRouter');
|
||||||
var movieRouter = require('./routes/api/movieRouter');
|
var movieRouter = require('./routes/api/movieRouter');
|
||||||
|
var mailRouter = require('./routes/mail');
|
||||||
|
|
||||||
var app = express();
|
var app = express();
|
||||||
|
|
||||||
@ -76,6 +77,7 @@ app.use('/old', oldRouter);
|
|||||||
app.use('/list', listRouter);
|
app.use('/list', listRouter);
|
||||||
app.use('/api/photos', photosRouter);
|
app.use('/api/photos', photosRouter);
|
||||||
app.use('/api/movies', movieRouter);
|
app.use('/api/movies', movieRouter);
|
||||||
|
app.use('/mail', mailRouter);
|
||||||
|
|
||||||
// catch 404 and forward to error handler
|
// catch 404 and forward to error handler
|
||||||
app.use(function(req, res, next) {
|
app.use(function(req, res, next) {
|
||||||
|
10
routes/mail.js
Normal file
10
routes/mail.js
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user