Files
private_image/frontend/src/utils/share/buildHotlinkViewerPath.ts
T
nobswebdev 0d8d682990 Emit single-segment hotlink share and viewer URLs.
Legacy /i and /h two-segment routes remain supported in the router and viewer.
2026-11-02 14:20:12 +01:00

4 lines
211 B
TypeScript

export const buildHotlinkViewerPath = (accessToken: string): string => `/h/${accessToken}`;
export const buildLegacyHotlinkViewerPath = (uploadId: string, secret: string): string => `/h/${uploadId}/${secret}`;