Skip to content

is there I way to run code after response? having access to req and res context? #3055

Answered by NicoPlyley
leognmotta asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @leognmotta,
I think what you are looking for the middleware, you will have access to the context as well. In middleware everything after await next() will run after the controller returns a responses and before it sent to the client take a look at the docs here

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@leognmotta
Comment options

@NicoPlyley
Comment options

@leognmotta
Comment options

Answer selected by leognmotta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants