Callbacks for RessourcesController

Feature(s) impacted

CRUD operations

Hello everyone,

Would there be a way to add custom code that is ran for every CRUD action (so I guess callbacks RessourcesController)?

The context is : I am using audited and would like to set the current user to the email in the auth JWT whenever calling CRUD actions from Forest Admin

Thanks !

Hello @NATR

Can you please add a bit of context to your question ?

Context

  • Project name: …
  • Team name: …
  • Environment name: …
  • Agent type & version: …

If you have a microservice project you could add a middleware to the CRUD routes
Here is the documentation related to the routes

Best regards,
Nicolas