// P4 Files (AK-P4a) — pure route-path builders for Files URLs. The loader builds // these and passes them into the View-Models so the VMs stay routing-agnostic. // Media URLs ALWAYS point at the auth-proxy route (AD-23), never at raw S3. export type MediaVariant = "original" | "preview" | "thumb"; export function filesDetailPath(tenantSlug: string, fileId: string): string { return `/${tenantSlug}/files/${fileId}`; } export function mediaVariantPath(tenantSlug: string, fileId: string, variant: MediaVariant): string { return `/${tenantSlug}/media/${fileId}/${variant}`; }