mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-29 07:04:39 +02:00
complete integration of direct share link as discussed in #35
This commit is contained in:
parent
bfd1b21f9c
commit
a2ed7c7117
15 changed files with 215 additions and 37 deletions
|
@ -1,3 +1,5 @@
|
|||
import { pullEnv } from "./pullEnv";
|
||||
|
||||
export function constructShareLink(
|
||||
resourceId: number,
|
||||
id: string,
|
||||
|
@ -5,3 +7,12 @@ export function constructShareLink(
|
|||
) {
|
||||
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}`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue