Skip to content

Commit

Permalink
change path to query param for download endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
chsami committed Jul 31, 2024
1 parent ef76df7 commit ac0bb2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MicrobotApi/Controllers/FileController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ public async Task<IActionResult> List(string environment, [FromQuery] string? fi
return Ok(fileNames);
}

[HttpGet("download/{path}")]
public async Task<IActionResult> Download(string path)
[HttpGet("download")]
public async Task<IActionResult> Download([FromQuery] string path)
{
var file = await _azureStorageService.DownloadFile(path);

Expand Down

0 comments on commit ac0bb2b

Please sign in to comment.