refactor: remove custom API handling from GET and POST methods; delete unused useMediaQuery hook and DetailRequest type

This commit is contained in:
kuekhaoyang
2025-11-18 17:02:02 +08:00
parent ab75156071
commit 6b443dccaf
4 changed files with 3 additions and 153 deletions
-16
View File
@@ -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);
}