stonecircle / kue-ui-express

Simple way to add Kue-Ui, a much improved interface for kue, to an Express app
MIT License
41 stars 9 forks source link

You must end your route with / #2

Closed wl496928838 closed 6 years ago

wl496928838 commented 7 years ago

How to deal with this???

var kue = require('kue');
var express = require('express');
var kueUiExpress = require('kue-ui-express');
var app = express();

kue.createQueue();

kueUiExpress(app, '/kue', '/api');

// Mount kue JSON api
app.use('/api', kue.app);

app.listen(3000);
jhunken commented 7 years ago

I had the same problem and changed it to kueUIExpress(app, '/kue/', '/api/kue'); and it seems to work. Looks like the README might need to be updated.

wl496928838 commented 7 years ago

yes update the README

mansona commented 6 years ago

This has been fixed in https://github.com/stonecircle/kue-ui-express/pull/3 👍

let me know if you have any more issues