diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/lib/bitmask.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js index 56ba03d6..b0ada5b9 100644 --- a/ui/app/lib/bitmask.js +++ b/ui/app/lib/bitmask.js @@ -113,6 +113,25 @@ var bitmask = function(){ return { api_token: function() {return api_token}, + + core: { + /** + * Get bitmaskd version + * + * @return {Promise<json>} {'version_core': str} + */ + version: function() { + return call(['core', 'version']); + } + + /** + * Stop bitmaskd + */ + stop: function() { + return call(['core', 'stop']); + } + } + bonafide: { provider: { create: function(domain) { |