mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
feat: change name to AIOStreams and use version and description from package.json
This commit is contained in:
@@ -3,14 +3,16 @@ import path from 'path';
|
||||
import { AIOStreams } from './addon';
|
||||
import { Config, StreamRequest } from '@aiostreams/types';
|
||||
|
||||
import { version, description } from '../package.json';
|
||||
|
||||
const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
const manifest = {
|
||||
name: 'aiostreams',
|
||||
name: 'AIOStreams',
|
||||
id: 'viren070.aiostreams.com',
|
||||
version: '1.0.0',
|
||||
description: 'Combine your streams into one addon',
|
||||
version: version,
|
||||
description: description,
|
||||
catalogs: [],
|
||||
resources: ['stream'],
|
||||
types: ['movie', 'series'],
|
||||
@@ -34,6 +36,10 @@ app.use((req, res, next) => {
|
||||
|
||||
app.use(express.static(path.join(__dirname, '../../frontend/out')));
|
||||
|
||||
app.get('/', (req, res) => {
|
||||
res.redirect('/configure');
|
||||
});
|
||||
|
||||
app.get(['/configure', '/:config/configure'], (req, res) => {
|
||||
res.sendFile(path.join(__dirname, '../../frontend/out/configure.html'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user