This commit is contained in:
Meizar 2025-08-01 06:36:02 +07:00
parent fcb1f741b9
commit ce95630cc6
4 changed files with 28 additions and 17 deletions

View file

@ -35,7 +35,7 @@ app.MapPost("/api/image/generate",
( RequestBody requestBody ) =>
{
ImageGenerator imageGenerator = new ImageGenerator();
var png = imageGenerator.GenerateImage3( requestBody );
var png = imageGenerator.GenerateImage( requestBody );
return Results.File(png, "image/png", "result.png");
})
.WithName("ImageGenerator")