This commit is contained in:
2020-06-17 17:59:34 +00:00
parent 6cdf44cb6f
commit fb586e0f5b
5 changed files with 603 additions and 74 deletions

View File

@@ -273,6 +273,33 @@ app.api = (function () {
});
};
///////////////////////////////////////////////////////////
//CreateRavLicense
//Route app.post('/api/license/create', function (req, res) {
//
createRavLicense = function (objData, callback) {
$.ajax({
method: "post",
dataType: "text",
url: app.shell.stateMap.apiUrl + "license/generate",
headers: getAuthHeaderObject(),
contentType: "application/json; charset=utf-8",
data: JSON.stringify(objData),
success: function (data, textStatus) {
callback(data);
},
error: function (jqXHR, textStatus, errorThrown) {
callback({
error: 1,
msg: textStatus + "\n" + errorThrown,
error_detail: {}
});
}
});
};
///////////////////////////////////////////////////////////
//GetLicenseRequests
//Fetch license requests