Changed the endpoint names in expense controller
This commit is contained in:
parent
c27ffe3a28
commit
448d586b94
@ -41,7 +41,7 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
_s3Service = s3Service;
|
_s3Service = s3Service;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet("list")]
|
||||||
public async Task<IActionResult> Get()
|
public async Task<IActionResult> Get()
|
||||||
{
|
{
|
||||||
var expensesList = await _context.Expenses
|
var expensesList = await _context.Expenses
|
||||||
@ -56,13 +56,13 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
return StatusCode(200, ApiResponse<object>.SuccessResponse(expensesList));
|
return StatusCode(200, ApiResponse<object>.SuccessResponse(expensesList));
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("{id}")]
|
[HttpGet("details/{id}")]
|
||||||
public string Get(int id)
|
public string Get(int id)
|
||||||
{
|
{
|
||||||
return "value";
|
return "value";
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost]
|
[HttpPost("create")]
|
||||||
public async Task<IActionResult> Post([FromBody] CreateExpensesDto dto)
|
public async Task<IActionResult> Post([FromBody] CreateExpensesDto dto)
|
||||||
{
|
{
|
||||||
var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync();
|
var loggedInEmployee = await _userHelper.GetCurrentEmployeeAsync();
|
||||||
@ -195,12 +195,12 @@ namespace Marco.Pms.Services.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[HttpPut("{id}")]
|
[HttpPut("edit/{id}")]
|
||||||
public void Put(int id, [FromBody] string value)
|
public void Put(int id, [FromBody] string value)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpDelete("{id}")]
|
[HttpDelete("delete/{id}")]
|
||||||
public void Delete(int id)
|
public void Delete(int id)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user