mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 13:35:53 +00:00
redirect to github site for landing page
avoid proxying all the landing page requests
This commit is contained in:
@@ -249,13 +249,15 @@ module.exports = function(opt) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
app.get('/', function(req, res, next) {
|
app.get('/', function(req, res, next) {
|
||||||
proxy.web(req, res);
|
res.redirect('https://localtunnel.github.io/www/');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO(roman) remove after deploying redirect above
|
||||||
app.get('/assets/*', function(req, res, next) {
|
app.get('/assets/*', function(req, res, next) {
|
||||||
proxy.web(req, res);
|
proxy.web(req, res);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TODO(roman) remove after deploying redirect above
|
||||||
app.get('/favicon.ico', function(req, res, next) {
|
app.get('/favicon.ico', function(req, res, next) {
|
||||||
proxy.web(req, res);
|
proxy.web(req, res);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user