Remove legacy API files: deleted analytics, auth, collections, ratings, scripts, users, and database schema files to streamline the codebase and eliminate unused functionality.

This commit is contained in:
2025-08-15 23:37:16 +01:00
parent 6a5bc8d194
commit 00b79f3537
11 changed files with 0 additions and 0 deletions

20
src/lib/api/index.ts Normal file
View File

@ -0,0 +1,20 @@
import { nanoid } from 'nanoid';
// Generate unique IDs
export const generateId = () => nanoid();
// Error handling
export class ApiError extends Error {
constructor(message: string, public status: number = 500) {
super(message);
this.name = 'ApiError';
}
}
// Export all service modules
export * from './scripts';
export * from './users';
export * from './ratings';
export * from './analytics';
export * from './collections';
export * from './auth';