basic file sharing
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import type { Share } from '~/shared/types/shares';
|
||||
|
||||
export function getApiUrl(path: string): string {
|
||||
const API_BASE_URL = useRuntimeConfig().public.apiBase;
|
||||
return `${API_BASE_URL}/${path}`;
|
||||
@@ -19,3 +21,7 @@ export function routeWithWarrenName(warrenId: string, path: string): string {
|
||||
|
||||
return `${warrenName}${path}`;
|
||||
}
|
||||
|
||||
export function getShareLink(share: Share): string {
|
||||
return `${window.location.origin}/share?id=${share.id}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user