anomaly/gallagher

Introduce `before` and `after` hooks in API endpoints

devraj opened this issue · 1 comments

The API endpoints inherit from a Base handler which lets the handlers configure handler specific context and for the rest of it handlers the behaviour of its own.

In certain contexts for example discovery of URLs we need to run operations to prepare the context.

This is a proposal to introduce a before_handler and after_handler hooks that run pre and post the main handler runs.