forked from mirrors/amnezia-wg-easy
		
	fixup: UI_TRAFFIC_STATS
This commit is contained in:
		
							parent
							
								
									b7c2c81cc7
								
							
						
					
					
						commit
						3f2495a0ea
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -64,9 +64,10 @@ module.exports = class Server {
 | 
			
		|||
 | 
			
		||||
        return `"${LANG}"`;
 | 
			
		||||
      }))
 | 
			
		||||
      .get('/api/ui-traffic-stats', (Util.promisify(async () => {
 | 
			
		||||
        return UI_TRAFFIC_STATS === 'true';
 | 
			
		||||
      }))
 | 
			
		||||
      .get('/api/ui-traffic-stats', defineEventHandler((event) => {
 | 
			
		||||
        setHeader(event, 'Content-Type', 'application/json');
 | 
			
		||||
        return `"${UI_TRAFFIC_STATS}"`;
 | 
			
		||||
      })
 | 
			
		||||
 | 
			
		||||
      // Authentication
 | 
			
		||||
        .get('/api/session', defineEventHandler((event) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue