first commit

This commit is contained in:
gelaws-hub 2025-07-31 19:39:06 +07:00
commit b344b6a03f
16 changed files with 405 additions and 0 deletions

21
Program.cs Normal file
View 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();