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 buildHotlinkImagePath = (uploadId: string, secret: string): string => `/i/${uploadId}/${secret}`;
export const buildHotlinkImagePath = (accessToken: string): string => `/i/${accessToken}`;
export const buildLegacyHotlinkImagePath = (uploadId: string, secret: string): string => `/i/${uploadId}/${secret}`;