Extending strapi plugin

Extending the users-permissions plugin, so whenever its ran (which I think is every route?) my additional checks and logic would run