Skip to content

Instantly share code, notes, and snippets.

@daffl
Last active October 5, 2020 00:47
Show Gist options
  • Save daffl/ea9d33677886ccb58b63d5465999d225 to your computer and use it in GitHub Desktop.
Save daffl/ea9d33677886ccb58b63d5465999d225 to your computer and use it in GitHub Desktop.
Using the feathers-batch service in a generated application
// Add to src/services/index.js
const { BatchService } = require('feathers-batch');
module.exports = function (app) {
// ...
app.use('/batch', new BatchService(app));
}
// Add to src/services/index.ts
import { BatchService } from 'feathers-batch';
export default function (app: Application) {
// ...
app.use('/batch', new BatchService(app));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment