Emit single-segment hotlink share and viewer URLs.

Legacy /i and /h two-segment routes remain supported in the router and viewer.
This commit is contained in:
2026-11-02 14:20:12 +01:00
parent 2396c5d16d
commit 0d8d682990
9 changed files with 67 additions and 26 deletions
@@ -1 +1,3 @@
export const buildHotlinkViewerPath = (uploadId: string, secret: string): string => `/h/${uploadId}/${secret}`;
export const buildHotlinkViewerPath = (accessToken: string): string => `/h/${accessToken}`;
export const buildLegacyHotlinkViewerPath = (uploadId: string, secret: string): string => `/h/${uploadId}/${secret}`;