|
|
|
@ -47,7 +47,15 @@ public class ImageManipulationController : BaseController<ImageManipulationContr |
|
|
|
|
/// TOP TEXT /// |
|
|
|
|
/// /// |
|
|
|
|
/// 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")] |
|
|
|
|