Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.hooks({
- before(hook) {
- console.log('Global before hook');
- },
- after(hook) {
- console.log('Global after hook');
- },
- error(hook) {
- console.error(`Error in ${hook.path} method ${hook.method}`, hook.error.stack);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement