[addon] add lite version redirect
This commit is contained in:
@@ -34,7 +34,7 @@ function dummyManifest() {
|
||||
function getDescription(config) {
|
||||
if (config.lite) {
|
||||
return 'Preconfigured Lite version of Torrentio addon.'
|
||||
+ ' To configure advanced options visit https://torrentio.strem.fun';
|
||||
+ ' To configure advanced options visit https://torrentio.strem.fun/lite';
|
||||
}
|
||||
const providersList = config.providers || DefaultProviders;
|
||||
const enabledProvidersDesc = Providers.options
|
||||
|
||||
@@ -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