Update backend/src/api/prices/prices.routes.ts

This commit is contained in:
softsimon 2023-07-29 16:34:47 +09:00 committed by softsimon
parent 864d9239ce
commit b2d4000b2d
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -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());