Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
behrad authored and vlad-x committed Nov 11, 2014
1 parent d537343 commit ae56e93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/http/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ app.del('/job/:id', provides('json'), json.remove);
app.post('/job', provides('json'), express.bodyParser(), json.createJob);

// routes

app.get('/', function (req, res) {
// res.redirect('active')
res.redirect(req.baseUrl+'/active');
var context = app.mountpath || req.baseUrl || app.path();
res.redirect( context+'/active' );
});

app.get('/active', routes.jobs('active'));
app.get('/inactive', routes.jobs('inactive'));
app.get('/failed', routes.jobs('failed'));
Expand Down

0 comments on commit ae56e93

Please sign in to comment.