output and whitespace
This commit is contained in:
parent
f17619efd2
commit
34ac5cf144
|
@ -342,10 +342,11 @@ function serveControls() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (/status/.test(opts.path)) {
|
if (/status/.test(opts.path)) {
|
||||||
res.end(
|
res.end(JSON.stringify(
|
||||||
'{"status":' + (state.config.disable ? 'disabled' : 'enabled')
|
{ status: (state.config.disable ? 'disabled' : 'enabled')
|
||||||
+ ',"ready":' + ((state.config.relay && (state.config.token || state.config.agreeTos)) ? 'true' : 'false')
|
, ready: ((state.config.relay && (state.config.token || state.config.agreeTos)) ? true : false)
|
||||||
+ '}');
|
}
|
||||||
|
));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue