How to load Ocelot routes from PostgreSQL database? #2232
-
Hello, I am currently working on an Ocelot API Gateway and would like to implement a feature where the routes are dynamically loaded from a PostgreSQL database instead of the default ocelot.json configuration file. Could you please guide me on how to approach this? Specifically, I need help with:
If you have any resources, examples, or steps to follow, they would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @aftabkajal ! The answer is #2217 (reply in thread) |
Beta Was this translation helpful? Give feedback.
Hi @aftabkajal !
You have the option to read from a database or manually create a
FileConfiguration
object prior to injecting it into theAddOcelot
method.The answer is #2217 (reply in thread)