mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 08:23:12 +00:00
Add HttpPut route to EditWorkorder endpoint
- services/api.js sends PUT for updates, controller only accepted POST
- Add [HttpPut("{id:int}")] alongside existing [HttpPost]
This commit is contained in:
parent
cc87039a77
commit
c69cef7fa9
1 changed files with 1 additions and 0 deletions
|
|
@ -175,6 +175,7 @@ namespace Api.SeaHavenIndustries.Controllers
|
|||
|
||||
|
||||
[HttpPost]
|
||||
[HttpPut("{id:int}")]
|
||||
[Route("EditWorkorder")]
|
||||
public async Task<IActionResult> Editworkorder([FromBody] EditWorkorder_DTO model)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue