| 
						
						
							
								
							
						
						
					 | 
					@ -50,6 +50,20 @@ class Server { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      res.status(201).send(); | 
					 | 
					 | 
					      res.status(201).send(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }); | 
					 | 
					 | 
					    }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     | 
					 | 
					 | 
					     | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    this.app.post('/unsubscribe', async (req: Request, res: Response) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      const subscription = req.body as Subscription; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      console.log(subscription); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      res.status(201).send(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    this.app.post('/mute', async (req: Request, res: Response) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      const subscription = req.body as Subscription; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      console.log(subscription); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      res.status(201).send(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    this.app.get('/vapid', async (_: Request, res: Response) => { | 
					 | 
					 | 
					    this.app.get('/vapid', async (_: Request, res: Response) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      const vapidkeys: VapidKeys[] = await this.vapidService.getVapidKeys(); | 
					 | 
					 | 
					      const vapidkeys: VapidKeys[] = await this.vapidService.getVapidKeys(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      const vapidkey = vapidkeys[0]; | 
					 | 
					 | 
					      const vapidkey = vapidkeys[0]; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |