Tweak GetTemplate return
This commit is contained in:
@@ -20,9 +20,7 @@ public class ImageGenerationController : BaseController<ImageGenerationControlle
|
||||
[ProducesResponseType(typeof(IEnumerable<ImageGenerationEndpointRead>), StatusCodes.Status200OK)]
|
||||
public Task<object> GetTemplates()
|
||||
{
|
||||
string serialized = JsonSerializer.Serialize(ImageManager.GetGenerationEndpoints());
|
||||
|
||||
return Task.FromResult(HttpContext.Send(EventResult.FromSuccess(serialized)));
|
||||
return Task.FromResult(HttpContext.Send(EventResult.FromSuccess(ImageManager.GetGenerationEndpoints())));
|
||||
}
|
||||
|
||||
[HttpGet("{template}")]
|
||||
|
||||
Reference in New Issue
Block a user