This commit is contained in:
2020-07-10 17:33:24 +00:00
parent bb8714ba4a
commit cdd0706881
2 changed files with 29 additions and 37 deletions

View File

@@ -29,14 +29,25 @@ namespace rockfishCore.Controllers
//### CUSTOMER ROUTE CALLED FROM RAVEN ####
[HttpPost]
public async Task<IActionResult> PostLicenseFetchRequest([FromBody] dtoFetchRequest fetchRequest)
public async Task<IActionResult> PostLicenseFetchRequest([FromBody] dtoFetchRequest fetchRequest, [FromQuery] bool dtt)
{
if (!ModelState.IsValid)
{
return BadRequest(ModelState);
}
string FetchRequestDbId=fetchRequest.DbId;
string FetchRequestDbId = fetchRequest.DbId;
if (dtt)
{
return Ok(new
{
data = new
{
key = RavenKeyFactory.GetRavenTestKey(FetchRequestDbId)
}
});
}
string LicenseKey = null;
//check for a key for this dbid, first check licensed then check trial