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:
@@ -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}`;
|
||||
|
||||
Reference in New Issue
Block a user