Add Regex to extra field

This commit is contained in:
2020-07-15 15:05:54 +02:00
parent 35637ddc37
commit 4f9a9e063a
3 changed files with 16 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ let Core = function () {
params = typeof params !== 'undefined' ? params : {};
callback = typeof callback !== 'undefined' ? callback : function (data) {};
const path = '/api/' + (func.startsWith('/') ? '' : '/') + func;
const path = '/api' + (func.startsWith('/') ? '' : '/') + func;
$.post(path, params, function (data) {
console.log(func + "(): success=" + data.success + " msg=" + data.msg);
callback.call(this, data);