1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-04-23 11:22:10 +00:00

fix: missing deletion

This commit is contained in:
Florian Bouillon 2024-09-26 00:43:22 +02:00
parent 5919bdcfa5
commit d5995d7723

View File

@ -251,7 +251,6 @@ server
*/ */
.get('/:lang/:endpoint/:id/:subid', (req: CustomRequest, res) => { .get('/:lang/:endpoint/:id/:subid', (req: CustomRequest, res) => {
let { id, lang, endpoint, subid } = req.params let { id, lang, endpoint, subid } = req.params
console.log(req.params)
if (subid.endsWith('.json')) { if (subid.endsWith('.json')) {
subid = subid.replace('.json', '') subid = subid.replace('.json', '')