https://discord.umbraco.com logo
#package-development
Title
# package-development
m

michaelreiter_

10/14/2021, 9:58 AM
What I have done for a project was to create a Service which reads all .json files within a folder at umbraco startup and saves the values in a Dictionary which I then can access via a static class like "Settings.GetValue(jsonPath)", that way i can easily add new files/settings without carrying about any C# classes or options pattern. I dont have a "reload" function (yet) but that shouldn't be too hard (probably)