mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
19 lines
407 B
TypeScript
19 lines
407 B
TypeScript
import { pullEnv } from "./pullEnv";
|
|
|
|
export function constructShareLink(
|
|
resourceId: number,
|
|
id: string,
|
|
token: string
|
|
) {
|
|
return `${window.location.origin}/auth/resource/${resourceId}?token=${id}.${token}`;
|
|
}
|
|
|
|
export function constructDirectShareLink(
|
|
param: string,
|
|
resourceUrl: string,
|
|
id: string,
|
|
token: string
|
|
) {
|
|
return `${resourceUrl}?${param}=${id}.${token}`;
|
|
}
|