output and whitespace
This commit is contained in:
		
							parent
							
								
									f17619efd2
								
							
						
					
					
						commit
						34ac5cf144
					
				@ -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