release
This commit is contained in:
parent
a101d84e45
commit
cbc092987d
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ builder.Services.AddControllers().AddJsonOptions(o => o.JsonSerializerOptions.Pr
|
|||
|
||||
builder.Services.AddMemoryCache(o => o.SizeLimit = 128L * 1024 * 1024);
|
||||
|
||||
string assetDir = assetDir = Environment.GetEnvironmentVariable("ASSET_PATH_RO") ?? throw new InvalidOperationException("dir not found");
|
||||
string assetDir = Environment.GetEnvironmentVariable("ASSET_PATH_RO") ?? throw new InvalidOperationException("dir not found");
|
||||
|
||||
builder.Services.AddSingleton<TileCache>();
|
||||
builder.Services.AddSingleton(provider => new TileLoader(provider.GetRequiredService<TileCache>(), assetDir));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue