2 years ago

Toggle Config values and env variables

Posted 2 years ago by jbowman99

I have a web API and would like to be able to set either a config value or env variable based on a setting selected within the admin tools of the api. For example if the API is being used by Business A has a set of modes or rules that apply to itself -- Toggle Mode variable to A Business B has its own set of modes -- Toggle Mode variable to B etc...

is it possible for me to have a switch or selector to set this variable from within the API in order to change how the overall API will worked based on the mode selected, like if Business B wants to adhere to Mode A?

not sure that makes sense...but its a work in progress

Please sign in or create an account to participate in this conversation.