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:
parent
5c6a4749f8
commit
f5fa952e54
@ -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', {}))
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user