just throwing this out there for your consideration… as a strategy was discussed earlier this year for similar “config” items coming from the database.
I am thinking of creating a config table to hold various values for the web app making it easier to change things globally later (and the client to change them, too) so I have a simple table containing just a couple of fields - configName and configValue. I will then store things like…
configName: 'admin_email'
configValue: 'admin@domain.com'
There probably won’t be many records but I will likely be adding to them.
I want to create a query in my globals api to get all the records and store th…