summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/app/lib/bitmask.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/ui/app/lib/bitmask.js b/ui/app/lib/bitmask.js
index 56ba03d..b0ada5b 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) {