Browse Source

Add HTTP path to ImagesController

master
Daniel Gyulai 4 years ago
parent
commit
40f36ef688
  1. 3
      CoviDok/Controllers/ImagesController.cs

3
CoviDok/Controllers/ImagesController.cs

@ -20,7 +20,7 @@ namespace CoviDok.Controllers
"secretsecretkey"); "secretsecretkey");
private readonly string BucketName = "test1"; private readonly string BucketName = "test1";
[HttpPost] [HttpPost("Upload")]
public async Task<GenericResponse> OnPostImage(ImagePost post) public async Task<GenericResponse> OnPostImage(ImagePost post)
{ {
GenericResponse response = new GenericResponse(); GenericResponse response = new GenericResponse();
@ -38,6 +38,7 @@ namespace CoviDok.Controllers
return response; return response;
} }
[HttpPost("Download")]
public async Task<IActionResult> OnGetImage(ImageGet imageGet) public async Task<IActionResult> OnGetImage(ImageGet imageGet)
{ {
string[] attrs = imageGet.ImageID.Split(":"); string[] attrs = imageGet.ImageID.Split(":");

Loading…
Cancel
Save