Skip to content
Browse files

Support express path mounting

Redirect away from / so /path won't point assets to /asset rather than /path/asset
  • Loading branch information...
1 parent 59d0bee commit 05057c7f4233b7af94d68f58bafe060cf40bd0e0 @Qard Qard committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/http/index.js
View
5 lib/http/index.js
@@ -1,4 +1,3 @@
-
/*!
* q - http
* Copyright (c) 2011 LearnBoost <tj@learnboost.com>
@@ -65,7 +64,9 @@ app.post('/job', provides('json'), express.bodyParser(), json.createJob);
// routes
-app.get('/', routes.jobs('active'));
+app.get('/', function (req, res) {
+ res.redirect('active')
+});
app.get('/active', routes.jobs('active'));
app.get('/inactive', routes.jobs('inactive'));
app.get('/failed', routes.jobs('failed'));

0 comments on commit 05057c7

Please sign in to comment.
Something went wrong with that request. Please try again.