10 lines
281 B
TypeScript
10 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 };
|
||
|
}
|