http post

This commit is contained in:
pangwenpeng 2024-07-15 09:59:05 +08:00
parent ec4b8e389c
commit 47aef96dd5
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,12 @@
{ {
"version": 1, "version": 1,
"isRoot": true, "isRoot": true,
"tools": {} "tools": {
"dotnet-ef": {
"version": "8.0.7",
"commands": [
"dotnet-ef"
]
}
}
} }

View File

@ -43,7 +43,7 @@ namespace langguanApi.Controllers
/// </summary> /// </summary>
/// <param name="input"></param> /// <param name="input"></param>
/// <returns></returns> /// <returns></returns>
[HttpPatch("add")] [HttpPost("add")]
public async Task<IActionResult> Add(Transport input) public async Task<IActionResult> Add(Transport input)
{ {
await _transportService.addTransport(input); await _transportService.addTransport(input);