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

fix: invalid OPTIONS request handling (#467)

This commit is contained in:
2024-01-03 20:25:15 +01:00
committed by GitHub
parent b4dbdef4fa
commit 12ed23b5a2

View File

@ -51,6 +51,13 @@ server.use((req, res, next) => {
next()
})
/**
* Handle options requests
*/
server.options('/*', (_, res) => {
res.status(200).send()
})
server.get('/', (_, res) => {
res.redirect('https://www.tcgdex.dev/?ref=api.tccgdex.net')
})