Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. app.hooks({
  2. before(hook) {
  3. console.log('Global before hook');
  4. },
  5.  
  6. after(hook) {
  7. console.log('Global after hook');
  8. },
  9.  
  10. error(hook) {
  11. console.error(`Error in ${hook.path} method ${hook.method}`, hook.error.stack);
  12. }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement