Skip to content
This repository was archived by the owner on Mar 28, 2024. It is now read-only.

Implement RequestHook #37

Open
felipevolpone opened this issue Nov 14, 2016 · 0 comments
Open

Implement RequestHook #37

felipevolpone opened this issue Nov 14, 2016 · 0 comments

Comments

@felipevolpone
Copy link
Owner

Have a RequestHook would allow us to easily run code after and before each request go to an endpoint or action. As an example, it would be possible have the transaction control into the RequestHook class.

Example of API:

class TransactionRequestHook(RequestHook):
     
     # to check if it should run in the /api/_login request and in the /api/_logout request
     after_authorization = True  # or False 

    def after(self):
        pass

    def before(self):
        pass
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant