Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// 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}`;
|
||||
}
|
||||
Reference in new issue
Block a user