Proyecto App Linux

This commit is contained in:
2026-05-03 23:43:09 +02:00
commit 7482733843
1248 changed files with 189750 additions and 0 deletions
@@ -0,0 +1,16 @@
import { Request, Response } from 'express';
import { getVodDetails } from '../data-store.js';
export function handleGetVodInfo(req: Request, res: Response): void {
const { username = '', password = '', vod_id } = req.query as Record<string, string>;
if (!vod_id) {
res.status(400).json({ error: 'vod_id required' });
return;
}
const details = getVodDetails(username, password, parseInt(vod_id, 10));
if (!details) {
res.status(404).json({ error: 'VOD not found' });
return;
}
res.json(details);
}