using System.Text.Json; using static System.IO.File; using static System.Text.Json.JsonSerializer; namespace InnovEnergy.App.Backend.S3; public static class S3Access { // TODO: put these into Json files in /Resources and read them from // there so they can be changed without recompiling // they should be read from disk on each use, // so the backend does not need to be restarted on change public static S3Cmd ReadOnly => Deserialize(OpenRead("./Resources/s3ReadOnlyKey.json"))!; public static S3Cmd ReadWrite => Deserialize(OpenRead("./Resources/s3ReadWriteKey.json"))!; }