team-4/backend/routes/get-video.ts
2025-08-02 13:28:10 +02:00

9 lines
281 B
TypeScript

import { GetYoutubeInput, GetYoutubeOutput } from "../types/api.ts";
import { searchYTVideo } from "../youtube-api.ts";
export async function getVids(
params: GetYoutubeInput,
): Promise<GetYoutubeOutput> {
const videoId = await searchYTVideo(params);
return { videoId };
}