Replies: 1 comment
-
Ah, upon further inspection, it seems this is trivial to do thanks to the request having the rocket instance easily accessible: Ref: https://api.rocket.rs/v0.5/rocket/struct.Request#method.rocket |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to access application configuration from within a data guard?
https://api.rocket.rs/v0.5/rocket/data/trait.FromData
Imagine a guard which rejects requests based on a configuration value, but that is occurring via a guard.
Beta Was this translation helpful? Give feedback.
All reactions