mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-14 00:29:19 +00:00
fix: Cache caching OPTIONS
requests
Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
@ -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', {}))
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user