basic file sharing

This commit is contained in:
2025-08-29 15:32:23 +02:00
parent c8b52a5b3b
commit 284d805590
84 changed files with 3969 additions and 375 deletions

View File

@@ -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}`;
}