From 92d06ceabe0fa68bc439515f83d7f36fd81846ac Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 6 Aug 2016 18:46:02 -0400 Subject: [PATCH] No response for device put token API. --- src/Api/Controllers/DevicesController.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Api/Controllers/DevicesController.cs b/src/Api/Controllers/DevicesController.cs index c0e2ee30e6..b5acfec663 100644 --- a/src/Api/Controllers/DevicesController.cs +++ b/src/Api/Controllers/DevicesController.cs @@ -93,7 +93,7 @@ namespace Bit.Api.Controllers [HttpPut("identifier/{identifier}/token")] [HttpPost("identifier/{identifier}/token")] - public async Task PutToken(string identifier, [FromBody]DeviceTokenRequestModel model) + public async Task PutToken(string identifier, [FromBody]DeviceTokenRequestModel model) { var device = await _deviceRepository.GetByIdentifierAsync(identifier, new Guid(_userManager.GetUserId(User))); if(device == null) @@ -102,9 +102,6 @@ namespace Bit.Api.Controllers } await _deviceService.SaveAsync(model.ToDevice(device)); - - var response = new DeviceResponseModel(device); - return response; } [AllowAnonymous]