Migrated the contentDelivery.ts server

This commit is contained in:
Mathias Wagner 2023-11-07 09:17:45 +01:00
parent 8910583aa3
commit 4a2155c88f
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -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 */