/**
 * API URLs
 */

export const getAvatarUploadUrl = (userId: string): string => {
  return `/api/users/${userId}/avatar`;
};

export const getStorageDownloadUrl = (key: string | { url: string; filename: string }): string => {
  if (typeof key === 'string') {
    return `/api/storage/${key}`;
  }
  return `/api/storage/download?url=${encodeURIComponent(key.url)}&filename=${encodeURIComponent(key.filename)}`;
};

export const getProjectExportUrl = (projectId: string): string => {
  return `/api/projects/${projectId}/export`;
};
