output and whitespace

This commit is contained in:
AJ ONeal 2018-06-13 13:16:50 -06:00
parent f17619efd2
commit 34ac5cf144
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;
}