finish simplification of ids into single value

This commit is contained in:
Chris Kruining 2025-06-05 10:24:37 +02:00
parent 61795fdc5e
commit 7b363964f7
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
10 changed files with 86 additions and 132 deletions

View file

@ -0,0 +1,16 @@
import { json } from "@solidjs/router";
import { APIEvent } from "@solidjs/start/server";
export const GET = async (event: APIEvent) => {
console.log(event.params);
const path = `${import.meta.dirname}/SampleVideo_1280x720_10mb`;
return json({
captions: await Bun.file(`${path}.captions.vtt`).bytes(),
thumbnails: {
track: await Bun.file(`${path}.thumbnails.vtt`).text(),
image: await Bun.file(`${import.meta.dirname}/overview.jpg`).bytes(),
},
});
};