first commit
This commit is contained in:
commit
b344b6a03f
16 changed files with 405 additions and 0 deletions
21
Program.cs
Normal file
21
Program.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using StitcherApi.Controllers;
|
||||
using StitcherApi.Services;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
var assetPath =
|
||||
Environment.GetEnvironmentVariable("ASSET_PATH_RO")
|
||||
?? Path.Combine(builder.Environment.ContentRootPath, "assets");
|
||||
|
||||
builder.Configuration["AssetPath"] = assetPath;
|
||||
|
||||
builder.Services.AddSingleton<IImageService, ImageService>();
|
||||
builder.Services.AddProblemDetails();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
app.UseExceptionHandler();
|
||||
|
||||
app.MapImageEndpoints();
|
||||
|
||||
app.Run();
|
||||
Loading…
Add table
Add a link
Reference in a new issue