19 lines
No EOL
648 B
C#
19 lines
No EOL
648 B
C#
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
// Add services to the container.
|
|
// Learn more about configuring OpenAPI at https://aka.ms/aspnet/openapi
|
|
// builder.Services.AddOpenApi();
|
|
|
|
builder.Services.AddControllers().AddJsonOptions(options => options.JsonSerializerOptions.PropertyNameCaseInsensitive = true);
|
|
|
|
builder.Services.AddMemoryCache(o => o.SizeLimit = 256 * 1024 * 1024);
|
|
|
|
builder.Services.AddSingleton<LiloStitcher.TileCache>();
|
|
builder.Services.AddSingleton<LiloStitcher.TileLoader>();
|
|
builder.Services.AddSingleton<LiloStitcher.LiloStitcher>();
|
|
|
|
var app = builder.Build();
|
|
|
|
app.MapControllers();
|
|
|
|
app.Run(); |