feat: change name to AIOStreams and use version and description from package.json

This commit is contained in:
Viren070
2024-12-26 12:37:55 +00:00
parent 33e861d914
commit 56bd66d133
+9 -3
View File
@@ -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'));
});