aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers/UserController.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-01-12 20:47:50 +0200
committertranstrike <transtrike@gmail.com>2021-01-12 20:47:50 +0200
commit65367fb0db7c62a10cf20738ee3e64e1659a1e76 (patch)
treeb637e1c3c4633093b52fe07632916ef6e96f5e5a /src/DevHive.Web/Controllers/UserController.cs
parent56f5578d5f93a56984deb6735dba51551868f6d8 (diff)
downloadDevHive-65367fb0db7c62a10cf20738ee3e64e1659a1e76.tar
DevHive-65367fb0db7c62a10cf20738ee3e64e1659a1e76.tar.gz
DevHive-65367fb0db7c62a10cf20738ee3e64e1659a1e76.zip
Changed HttpPost to HttpDelete when appropriate
Diffstat (limited to 'src/DevHive.Web/Controllers/UserController.cs')
-rw-r--r--src/DevHive.Web/Controllers/UserController.cs4
1 files changed, 2 insertions, 2 deletions
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)
{