Global shared
Shared data globally¶
g.shared is used to share data between post-hooks, pre-hooks, code, and APIs.
- If the user set a shared variable from the one API response.
- User can get that shared variables value in another API.
g.shared is used to share data between post-hooks, pre-hooks, code, and APIs.