Ebay provider resolution

This commit is contained in:
Nicolai Ort 2021-08-14 15:47:58 +02:00
parent 12c6d7e3da
commit 339e2f39d8
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ fastify.get('/ytpl/:id', async (req, res) => {
res.redirect(302, `https://youtube.com/playlist?list=${req.params.id}`)
})
//Automagic ebay item redirects on /e/
fastify.get('/e/:id', async (req, res) => {
res.redirect(302, `https://ebay.de/itm/${req.params.id}`)
})
//Normal shorturls
fastify.get('/:shortcode', async (req, res) => {
const shortcode = req.params.shortcode;