output and whitespace

This commit is contained in:
AJ ONeal 2018-06-13 13:16:50 -06:00
parent 6c1efd476d
commit 73a175a121
1 changed files with 5 additions and 4 deletions

View File

@ -342,10 +342,11 @@ function serveControls() {
}
if (/status/.test(opts.path)) {
res.end(
'{"status":' + (state.config.disable ? 'disabled' : 'enabled')
+ ',"ready":' + ((state.config.relay && (state.config.token || state.config.agreeTos)) ? 'true' : 'false')
+ '}');
res.end(JSON.stringify(
{ status: (state.config.disable ? 'disabled' : 'enabled')
, ready: ((state.config.relay && (state.config.token || state.config.agreeTos)) ? true : false)
}
));
return;
}