Clean up HiveMind Minimal API setup - move configuration to extenstion methods, same for CommunicationControl, move RequestSchema for Hive to HiveModel, make ComControl use it, set minimum log level for files to Information
16 lines
489 B
C#
16 lines
489 B
C#
namespace DevOpsProject.CommunicationControl.API.DI
|
|
{
|
|
public static class JsonControllerOptionsConfiguration
|
|
{
|
|
public static IServiceCollection AddJsonControllerOptionsConfiguration(this IServiceCollection serviceCollection)
|
|
{
|
|
serviceCollection.AddControllers().AddJsonOptions(options =>
|
|
{
|
|
options.JsonSerializerOptions.PropertyNamingPolicy = null;
|
|
});
|
|
|
|
return serviceCollection;
|
|
}
|
|
}
|
|
}
|