mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-21 11:43:41 +08:00
refactor: remove custom API handling from GET and POST methods; delete unused useMediaQuery hook and DetailRequest type
This commit is contained in:
@@ -250,20 +250,4 @@ export async function getVideoDetail(
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get video detail with custom API URL
|
||||
*/
|
||||
export async function getVideoDetailCustom(
|
||||
id: string | number,
|
||||
customApiUrl: string
|
||||
): Promise<VideoDetail> {
|
||||
const customSource: VideoSource = {
|
||||
id: 'custom',
|
||||
name: 'Custom API',
|
||||
baseUrl: customApiUrl,
|
||||
searchPath: '',
|
||||
detailPath: '',
|
||||
};
|
||||
|
||||
return getVideoDetail(id, customSource);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user