started token API

This commit is contained in:
2021-03-23 00:41:12 -04:00
parent b97970c8de
commit 623e52e135
5 changed files with 506 additions and 17 deletions
+14
View File
@@ -243,6 +243,20 @@ app.group = (function(app){
return {list, remove}
})(app)
app.token = (function(app){
function list(name, callack){
if($.isFunction(name)){
callack = name;
name = ''
}
app.api.get('token/'+name+'?detail=true', function(error, data){
callack(error, data);
});
}
return {list}
})(app)
app.util = (function(app){
function getUrlParameter(name) {