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

Before/After hooks #8

Open
mintyPT opened this issue Mar 3, 2017 · 1 comment
Open

Before/After hooks #8

mintyPT opened this issue Mar 3, 2017 · 1 comment

Comments

@mintyPT
Copy link

mintyPT commented Mar 3, 2017

Is it possible to have a hook to be fired before/after every endpoint?

For example, the before hook coold be used to protect all the routes.

@nabilfreeman
Copy link

This could also be useful for wrapping the results like so:

{
    "success": true,
    "data": {{kalamata data here}}
}

which is a fairly common REST API pattern.

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

No branches or pull requests

2 participants