Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware: architect and develop #14

Open
joshjung opened this issue Jan 25, 2017 · 0 comments
Open

Middleware: architect and develop #14

joshjung opened this issue Jan 25, 2017 · 0 comments

Comments

@joshjung
Copy link
Collaborator

joshjung commented Jan 25, 2017

Target Code (UP FOR DISCUSSION):

function preLogger(/* injections */, done /* optional */) {
  console.log('Starting event: ', ringaEvent.type);
  done();
}
function postLogger(/* injections */, done /* optional */) {
  console.log('Finished event: ', ringaEvent.type);
  done();
}

controller.addPreMiddleware(preLogger);
controller.addPostMiddleware(postLogger);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant