Migrated the contentDelivery.ts server
This commit is contained in:
parent
8910583aa3
commit
4a2155c88f
@ -13,7 +13,7 @@ app.get("*.*", async (req: Request, res: Response) => {
|
|||||||
if (!found) return res.status(404).send("<h2>Asset not found</h2>");
|
if (!found) return res.status(404).send("<h2>Asset not found</h2>");
|
||||||
if (found.assetEnding !== asset[1]) return res.status(404).send("<h2>Asset not found</h2>");
|
if (found.assetEnding !== asset[1]) return res.status(404).send("<h2>Asset not found</h2>");
|
||||||
|
|
||||||
await pipeMedia(found.assetId, res);
|
pipeMedia(found.assetId!, res);
|
||||||
});
|
});
|
||||||
|
|
||||||
/** Starts the cdn service */
|
/** Starts the cdn service */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user