feat: auth & admin
This commit is contained in:
@@ -7,7 +7,8 @@ export function getStreamUrl(trackId: string, token: string): string {
|
||||
|
||||
export function getCoverUrl(artUrl: string | undefined): string | undefined {
|
||||
if (!artUrl) return undefined;
|
||||
if (artUrl.startsWith('http://') || artUrl.startsWith('https://')) return artUrl;
|
||||
if (artUrl.startsWith('http://') || artUrl.startsWith('https://'))
|
||||
return artUrl;
|
||||
const base = getApiBaseUrl();
|
||||
return `${base}${artUrl}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user