This commit is contained in:
2019-10-07 19:38:50 +00:00
parent a6a02989e2
commit b5735d3eb9

View File

@@ -75,13 +75,19 @@ namespace qbridge.Controllers
} }
[HttpGet("start/{state}")] [HttpGet("start/{state}/{sourceid}")]
public async Task<IActionResult> GetAsync([FromRoute]string state) public async Task<IActionResult> GetAsync([FromRoute]string state, [FromRoute] string sourceid)
{ {
//sourceid is actually the license id or trial so I can tell who is using and ultimately filter them out if they are not licensed and up to date (down the road, not initially)
if (string.IsNullOrWhiteSpace(state)) if (string.IsNullOrWhiteSpace(state))
{ {
return BadRequest("state value is required"); return BadRequest("state value is missing and required");
}
if (string.IsNullOrWhiteSpace(sourceid))
{
return BadRequest("sourceid value is missing and required");
} }
//Job one is to clean out the old entries in the token store if necessary //Job one is to clean out the old entries in the token store if necessary
@@ -246,7 +252,8 @@ namespace qbridge.Controllers
return Ok(token.Value); return Ok(token.Value);
} }
} }
public class QBToken public class QBToken