1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-08-16 09:08:52 +00:00

Compare commits

...

1 Commits

Author SHA1 Message Date
12ed23b5a2 fix: invalid OPTIONS request handling (#467) 2024-01-03 20:25:15 +01:00

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')
})