In some circumstances someone might need to use the available JSON API Routes without needing to mount the entire Express App instance through a middleware or from a standalone Kue instance.
Proposal
Expose the JSON API Routes, so it could be used as:
const kueJsonRoutes = require('kue').json
or through the App instance
const kueJsonRoutes = require('kue').app.json
Will like to know what others thoughts are on integrating this. I can open a PR for changes if accepted.
Reason
In some circumstances someone might need to use the available JSON API Routes without needing to mount the entire Express App instance through a middleware or from a standalone Kue instance.
Proposal
Expose the JSON API Routes, so it could be used as:
const kueJsonRoutes = require('kue').json
or through the App instanceconst kueJsonRoutes = require('kue').app.json
Will like to know what others thoughts are on integrating this. I can open a PR for changes if accepted.
Thanks!