Fix GetAllocated routing
This commit is contained in:
parent
5f0b69c2c9
commit
1d41854ddd
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ namespace LANCommander.Controllers.Api
|
|||
return KeyService.Get(k => k.AllocationMethod == Data.Models.KeyAllocationMethod.MacAddress && k.ClaimedByMacAddress == keyRequest.MacAddress).First();
|
||||
}
|
||||
|
||||
[HttpPost("GetAllocated/{id}")]
|
||||
public async Task<Data.Models.Key> GetAllocated(Guid id, KeyRequest keyRequest)
|
||||
{
|
||||
var existing = KeyService.Get(k => k.Game.Id == id && k.AllocationMethod == Data.Models.KeyAllocationMethod.MacAddress && k.ClaimedByMacAddress == keyRequest.MacAddress).FirstOrDefault();
|
||||
|
|
Loading…
Add table
Reference in a new issue