output and whitespace
This commit is contained in:
parent
6c1efd476d
commit
73a175a121
|
@ -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