From ef68a5250f82847891516e12e334f1c6cb6398fd Mon Sep 17 00:00:00 2001 From: Grey Himmel Date: Sun, 28 Jul 2019 16:27:54 -0400 Subject: [PATCH] Return member after create/edit Changing the POST and PATCH routes to return the member that's been created/edited, similar to how it worked before. Makes it easier to compare changes and get a newly created member's ID --- PluralKit.API/Controllers/MemberController.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PluralKit.API/Controllers/MemberController.cs b/PluralKit.API/Controllers/MemberController.cs index b257d20d..72c383c4 100644 --- a/PluralKit.API/Controllers/MemberController.cs +++ b/PluralKit.API/Controllers/MemberController.cs @@ -66,7 +66,7 @@ namespace PluralKit.API.Controllers member.Suffix = newMember.Suffix; await _members.Save(member); - return Ok(); + return Ok(member); } [HttpPatch("{hid}")] @@ -107,7 +107,7 @@ namespace PluralKit.API.Controllers member.Suffix = newMember.Suffix; await _members.Save(member); - return Ok(); + return Ok(member); } } -} \ No newline at end of file +}