Make API URL configurable and listen to config changes

Also prevents useless API call when no API key is set
This commit is contained in:
Mikko Ahlroth
2017-08-27 20:51:01 +03:00
committed by Juha Ristolainen
parent 24ee812c7d
commit 2bff22d53f
3 changed files with 28 additions and 12 deletions

View File

@ -31,6 +31,11 @@
"type": "string",
"default": "",
"description": "Code::Stats API key for this machine."
},
"codestats.apiurl": {
"type": "string",
"default": "https://codestats.net/api/my/pulses",
"description": "Code::Stats API URL. Only change if you know what you are doing!"
}
}
},
@ -52,4 +57,4 @@
"dependencies": {
"axios": "0.15.3"
}
}
}