|
|
|
@ -48,6 +48,14 @@ public class ImageManipulationController : BaseController<ImageManipulationContr |
|
|
|
|
/// /// |
|
|
|
|
/// BOTTOM TEXT /// |
|
|
|
|
/// ------------- /// |
|
|
|
|
[HttpGet] |
|
|
|
|
[EndpointMetrics("image.generate.get.templates")] |
|
|
|
|
[ProducesResponseType(typeof(IEnumerable<ImageGenerationEndpointRead>), StatusCodes.Status200OK)] |
|
|
|
|
public Task<object> GetTemplates() |
|
|
|
|
{ |
|
|
|
|
return Task.FromResult(HttpContext.Send(EventResult.FromSuccess(ImageManager.GetManipulationEndpoints()))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[HttpGet("{template}")] |
|
|
|
|
[EndpointMetrics("image.manipulation.generate")] |
|
|
|
|
[ProducesResponseType(typeof(Stream), StatusCodes.Status200OK, "image/png")] |
|
|
|
|