mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
removed player reducer, migrated to CRA 5
This commit is contained in:
parent
88f8fe21f7
commit
558e8f8a4f
211 changed files with 7131 additions and 10318 deletions
8
src/api/metadata/index.ts
Normal file
8
src/api/metadata/index.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { api, cleanResult } from '~/utils/api';
|
||||
import { API } from '~/constants/api';
|
||||
import { ApiGetEmbedYoutubeResult } from '~/api/metadata/types';
|
||||
|
||||
export const apiGetEmbedYoutube = (ids: string[]) =>
|
||||
api
|
||||
.get<ApiGetEmbedYoutubeResult>(API.EMBED.YOUTUBE, { params: { ids: ids.join(',') } })
|
||||
.then(cleanResult);
|
3
src/api/metadata/types.ts
Normal file
3
src/api/metadata/types.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
import { EmbedMetadata } from '~/types/metadata';
|
||||
|
||||
export type ApiGetEmbedYoutubeResult = { items: Record<string, EmbedMetadata> };
|
Loading…
Add table
Add a link
Reference in a new issue