1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-06-06 13:29:55 +00:00

fix: Cache caching OPTIONS requests

Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
Florian Bouillon 2022-11-25 10:24:26 +01:00
parent 5c6a4749f8
commit f5fa952e54
Signed by: Florian Bouillon
GPG Key ID: E05B3A94178D3A7C

View File

@ -39,7 +39,7 @@ const endpointToField: Record<string, keyof SDKCard> = {
// })
server
.use(apicache.middleware('1 day', undefined, {}))
.use(apicache.middleware('1 day', (req: Request, res: Response) => req.method === 'GET', {}))