routing-controllers icon indicating copy to clipboard operation
routing-controllers copied to clipboard

question: How to execute code after the response is sent to client

Open victor-murillo-deel opened this issue 1 month ago • 0 comments

I'd like to execute some logic after my controller returns a response. Since this logic does not impact the result, I'd like to return first, so the client can receive the response asap, and then run this additional logic Something like https://stackoverflow.com/questions/16180502/why-can-i-execute-code-after-res-send

The problem: It's not clear to me how to achieve this with this library

victor-murillo-deel avatar May 31 '24 23:05 victor-murillo-deel