* fix(route/kemono): improve JSON field parsing with nested string handling * feat(route/kemono): add announcements and fancards support (close #16269) * refactor(route/kemono): restructure codebase with constants extraction and type definitions * Update lib/routes/kemono/index.ts --------- Co-authored-by: AiraNadih <AiraNadih@users.noreply.github.com>
10 lines
260 B
TypeScript
10 lines
260 B
TypeScript
const KEMONO_ROOT_URL = 'https://kemono.su';
|
|
const KEMONO_API_URL = `${KEMONO_ROOT_URL}/api/v1`;
|
|
const MIME_TYPE_MAP = {
|
|
m4a: 'audio/mp4',
|
|
mp3: 'audio/mpeg',
|
|
mp4: 'video/mp4',
|
|
} as const;
|
|
|
|
export { KEMONO_API_URL, KEMONO_ROOT_URL, MIME_TYPE_MAP };
|