team-4/backend/routes/get-video.ts

10 lines
281 B
TypeScript
Raw Normal View History

2025-08-02 13:28:10 +02:00
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 };
}