Open mintyPT opened 7 years ago
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.
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.
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.