Update backend/src/api/prices/prices.routes.ts
This commit is contained in:
		
							parent
							
								
									864d9239ce
								
							
						
					
					
						commit
						b2d4000b2d
					
				@ -7,7 +7,7 @@ class PricesRoutes {
 | 
				
			|||||||
    app.get(config.MEMPOOL.API_URL_PREFIX + 'prices', this.$getCurrentPrices.bind(this));
 | 
					    app.get(config.MEMPOOL.API_URL_PREFIX + 'prices', this.$getCurrentPrices.bind(this));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  private async $getCurrentPrices(req: Request, res: Response): Promise<void> {
 | 
					  private $getCurrentPrices(req: Request, res: Response): void {
 | 
				
			||||||
    res.header('Pragma', 'public');
 | 
					    res.header('Pragma', 'public');
 | 
				
			||||||
    res.header('Cache-control', 'public');
 | 
					    res.header('Cache-control', 'public');
 | 
				
			||||||
    res.setHeader('Expires', new Date(Date.now() + 1000 * 300).toUTCString());
 | 
					    res.setHeader('Expires', new Date(Date.now() + 1000 * 300).toUTCString());
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user