Skip to content

Loading…

Use relative stats route #87

Merged
merged 1 commit into from

2 participants

@alexkwolfe

Prior to this fix all requests to the stats route failed when kue was mounted at a subdirectory:

// stats requests go to /stats rather than /kue/stats
require('express')
  .createServer()
  .use('/kue', kue.app)
  .listen(8080);
@tj tj merged commit 228cd57 into Automattic:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 18, 2011
  1. @alexkwolfe
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/http/public/javascripts/main.js
View
2 lib/http/public/javascripts/main.js
@@ -235,7 +235,7 @@ function refreshJobs(state, fn) {
*/
function pollStats(ms) {
- request('/stats', function(data){
+ request('./stats', function(data){
o('li.inactive .count').text(data.inactiveCount);
o('li.active .count').text(data.activeCount);
o('li.complete .count').text(data.completeCount);
Something went wrong with that request. Please try again.