Backend
API endpoints and server-side functionality
Overview
The backend of magic.mov provides APIs for:
- Media asset management
- Project data persistence
- User settings and preferences
- Rendering and processing jobs
Key Components
src/routes/api
This directory contains all API endpoints, organized by resource type:
- Media endpoints (/api/media/*)
- Project endpoints (/api/projects/*)
- User data endpoints (/api/user/*)
- Render job endpoints (/api/render/*)
src/hooks.server.ts
This file implements server middleware for:
- Authentication validation
- Request logging
- Error handling
- CORS configuration
- Rate limiting