Last active
January 9, 2017 16:27
-
-
Save daffl/c03e5594d1c24b4e8370c2791e8cae75 to your computer and use it in GitHub Desktop.
Feathers default hooks
This file contains hidden or 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
| const feathers = require('feathers'); | |
| const hooks = require('feathers-hooks'); | |
| const app = feathers().configure(hooks()); | |
| // Add a service mixin | |
| app.mixins.push(function(service) { | |
| service.before(function() { | |
| console.log('Before all default hook is running'); | |
| }); | |
| }); | |
| app.use('/todos', todoService); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment