Skip to content

Commit 465863e

Browse files
committed
Merge pull request #719 from azimgd/fix/redirection
fix redirection issue #715
2 parents 447f525 + 048e3e4 commit 465863e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/http/index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,7 @@ app.post('/job', provides('json'), bodyParser.json(), json.createJob);
6666

6767
// routes
6868

69-
app.get('/', function( req, res ) {
70-
var context = app.mountpath || req.baseUrl;
71-
72-
// Strip trailing slash from context
73-
if( context && context[context.length - 1] === '/' ) {
74-
context = context.substring(0, context.length - 1);
75-
}
76-
77-
res.redirect(context + '/active');
78-
});
69+
app.get('/', routes.jobs('active'));
7970

8071
app.get('/active', routes.jobs('active'));
8172
app.get('/inactive', routes.jobs('inactive'));

0 commit comments

Comments
 (0)