mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-04-22 19:02:10 +00:00
fix: invalid OPTIONS
request handling (#467)
This commit is contained in:
parent
b4dbdef4fa
commit
12ed23b5a2
@ -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')
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user