mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-07-09 19:49:19 +00:00
@ -42,7 +42,7 @@ server
|
|||||||
// })
|
// })
|
||||||
|
|
||||||
// Midleware that handle url transformation
|
// Midleware that handle url transformation
|
||||||
.use((req, res, next) => {
|
.use((req, _, next) => {
|
||||||
// this is ugly BUT it fix the problem with + not becoming spaces
|
// this is ugly BUT it fix the problem with + not becoming spaces
|
||||||
req.url = req.url.replace(/\+/g, ' ')
|
req.url = req.url.replace(/\+/g, ' ')
|
||||||
next()
|
next()
|
||||||
|
Reference in New Issue
Block a user