C# gw offload work, schema-izing stuff

This commit is contained in:
Rory& committed 2026-02-06 05:21:31 +01:00
1 parent 3a5009f7c7
commit 862bfd7803
25 files changed
+817 -83

No files matched your search

+3 -3
View File
@@ -9,6 +9,8 @@ using Spacebar.Interop.Replication.UnixSocket;
using Spacebar.Models.Db.Contexts;
var builder = WebApplication.CreateBuilder(args);
if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("APPSETTINGS_PATH")))
builder.Configuration.AddJsonFile(Environment.GetEnvironmentVariable("APPSETTINGS_PATH")!);
// Add services to the container.
@@ -19,9 +21,7 @@ builder.Services.AddControllers(options => {
options.JsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull;
options.JsonSerializerOptions.WriteIndented = true;
// options.JsonSerializerOptions.DefaultBufferSize = ;
}).AddMvcOptions(o=> {
o.SuppressOutputFormatterBuffering = true;
});
}).AddMvcOptions(o => { o.SuppressOutputFormatterBuffering = true; });
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
builder.Services.AddOpenApi();