forked from coolaj86/telebit.js
		
	output and whitespace
This commit is contained in:
		
							parent
							
								
									6c1efd476d
								
							
						
					
					
						commit
						73a175a121
					
				| @ -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; | ||||
|     } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user