mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 23:10:00 +02:00
18 lines
407 B
TypeScript
18 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}`;
|
|
}
|