You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @jimydavis ,
If you want make sure regarding recovery middleware always runs at the end,
You can use the first approach (gin. Recovery() as the Global middleware of your router)
I think this is the only way to handle any panic across the routers
Which one of the following is more correct if I want to make sure Recovery is always run at the end?
From the way I understand the docs + other issues, it feels like global middleware is run as a priority BEFORE group level middleware.
Thank you for the help!
Global Recovery
Group Level Recovery
The text was updated successfully, but these errors were encountered: