Last active
October 5, 2020 00:47
-
-
Save daffl/ea9d33677886ccb58b63d5465999d225 to your computer and use it in GitHub Desktop.
Using the feathers-batch service in a generated application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add to src/services/index.js | |
const { BatchService } = require('feathers-batch'); | |
module.exports = function (app) { | |
// ... | |
app.use('/batch', new BatchService(app)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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