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();
|
var users = await _userService.GetAllUsers();
|
||||||
return Ok(users);
|
return Ok(users);
|
||||||
}
|
}
|
||||||
|
[AllowAnonymous]
|
||||||
[HttpGet("{id:int}")]
|
[HttpGet("{id:int}")]
|
||||||
public async Task<IActionResult> GetById(int id)
|
public async Task<IActionResult> GetById(int id)
|
||||||
{
|
{
|
||||||
@@ -80,6 +80,7 @@ namespace CarParkValidationAPI.Controllers
|
|||||||
return Ok(user);
|
return Ok(user);
|
||||||
}
|
}
|
||||||
/* download the excel file */
|
/* download the excel file */
|
||||||
|
[AllowAnonymous]
|
||||||
[HttpGet("[action]")]
|
[HttpGet("[action]")]
|
||||||
public async Task<IActionResult> GetReportFile()
|
public async Task<IActionResult> GetReportFile()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user