mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
[addon] add lite version redirect
This commit is contained in:
@@ -22,6 +22,11 @@ router.get('/', (_, res) => {
|
||||
res.end();
|
||||
});
|
||||
|
||||
router.get('/lite', (_, res) => {
|
||||
res.redirect('/lite/configure')
|
||||
res.end();
|
||||
});
|
||||
|
||||
router.get('/:configuration?/configure', (req, res) => {
|
||||
const configValues = parseConfiguration(req.params.configuration || '');
|
||||
const landingHTML = landingTemplate(manifest(configValues), configValues);
|
||||
|
||||
Reference in New Issue
Block a user