| | |
| | | using Microsoft.AspNetCore.Hosting; |
| | | using Microsoft.Extensions.DependencyInjection; |
| | | using Microsoft.Extensions.Hosting; |
| | | using System.Text.Encodings.Web; |
| | | using System.Text.Json.Serialization; |
| | | using System.Text.Unicode; |
| | | |
| | | |
| | | namespace DocumentServiceAPI.Web.Core; |
| | | |
| | |
| | | |
| | | services.AddCorsAccessor(); |
| | | |
| | | services.AddControllers(); |
| | | services.AddControllers().AddJsonOptions(options => |
| | | { |
| | | options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter()); |
| | | // options.JsonSerializerOptions.Encoder = JavaScriptEncoder.Create(); |
| | | }); ; |
| | | services.AddInjectWithUnifyResult<DSRESTFulResultProvider>(); |
| | | |
| | | } |
| | |
| | | app.UseDeveloperExceptionPage(); |
| | | } |
| | | |
| | | app.UseHttpsRedirection(); |
| | | // app.UseHttpsRedirection(); |
| | | |
| | | app.UseRouting(); |
| | | |