Website Summary Files Commits Branches @commit @diff @stats
path: root / src / DevHive.Web / Controllers / UserController.cs
diff options
context:
space:
mode:
Commit65367fb0db7c62a10cf20738ee3e64e1659a1e76 (patch)
Author
 transtrike <transtrike@gmail.com>
2021-01-12 20:47:50 +0200
Committer
 transtrike <transtrike@gmail.com>
2021-01-12 20:47:50 +0200
Filesb637e1c3c4633093b52fe07632916ef6e96f5e5a /src/DevHive.Web/Controllers/UserController.cs
DevHive-65367fb0db7c62a10cf20738ee3e64e1659a1e76.tar
DevHive-65367fb0db7c62a10cf20738ee3e64e1659a1e76.tar.gz
DevHive-65367fb0db7c62a10cf20738ee3e64e1659a1e76.zip
Parent56f5578d5f93a56984deb6735dba51551868f6d8 (diff)
Changed HttpPost to HttpDelete when appropriate
1 files changed, 2 insertions, 2 deletions
-rw-r--r--src/DevHive.Web/Controllers/UserController.cs4
diff --git a/src/DevHive.Web/Controllers/UserController.cs b/src/DevHive.Web/Controllers/UserController.cs
index 8fa07cf..c222ba6 100644
--- a/src/DevHive.Web/Controllers/UserController.cs
+++ b/src/DevHive.Web/Controllers/UserController.cs
@@ -153,7 +153,7 @@ namespace DevHive.Web.Controllers
return new OkResult();
}
- [HttpPost]
+ [HttpDelete]
[Route("RemoveLanguageFromUser")]
public async Task<IActionResult> RemoveLanguageFromUser(Guid userId, [FromBody] LanguageWebModel languageWebModel)
{
@@ -164,7 +164,7 @@ namespace DevHive.Web.Controllers
new BadRequestResult();
}
- [HttpPost]
+ [HttpDelete]
[Route("RemoveTechnologyFromUser")]
public async Task<IActionResult> RemoveTechnologyFromUser(Guid userId, [FromBody] TechnologyWebModel technologyWebModel)
{