This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user