5 lines
256 B
TypeScript
5 lines
256 B
TypeScript
import { getAppConfig } from '@/lib/config';
|
|
|
|
/** A media address of the host (<c>/media/...</c>) as the browser must request it from the admin. */
|
|
export const mediaUrl = (path: string): string => `${getAppConfig().apiBaseUrl.replace(/\/$/, '')}${path}`;
|