Final commit
This commit is contained in:
parent
91fffb3294
commit
c35e0716af
372 changed files with 16591 additions and 1 deletions
9
backend/routes/get-video.ts
Normal file
9
backend/routes/get-video.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
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 };
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue