This commit is contained in:
@@ -75,13 +75,19 @@ namespace qbridge.Controllers
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("start/{state}")]
|
||||
public async Task<IActionResult> GetAsync([FromRoute]string state)
|
||||
[HttpGet("start/{state}/{sourceid}")]
|
||||
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))
|
||||
{
|
||||
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
|
||||
@@ -246,7 +252,8 @@ namespace qbridge.Controllers
|
||||
return Ok(token.Value);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class QBToken
|
||||
|
||||
Reference in New Issue
Block a user