allow to get report. security problem on controller
This commit is contained in:
@@ -67,7 +67,7 @@ namespace CarParkValidationAPI.Controllers
|
||||
var users = await _userService.GetAllUsers();
|
||||
return Ok(users);
|
||||
}
|
||||
|
||||
[AllowAnonymous]
|
||||
[HttpGet("{id:int}")]
|
||||
public async Task<IActionResult> GetById(int id)
|
||||
{
|
||||
@@ -80,6 +80,7 @@ namespace CarParkValidationAPI.Controllers
|
||||
return Ok(user);
|
||||
}
|
||||
/* download the excel file */
|
||||
[AllowAnonymous]
|
||||
[HttpGet("[action]")]
|
||||
public async Task<IActionResult> GetReportFile()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user