Reorganize repo structure and standards references
This commit is contained in:
1 parent
3cb93a81be
commit
be2054274d
5885 files changed
+2588
-195
No files matched your search
+13
@@ -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