- StorageClient for Supabase Storage REST API (upload, download, delete)
- DocumentService with CRUD operations + storage integration
- DocumentHandler with multipart form upload support (50MB limit)
- Routes: GET/POST /api/cases/{id}/documents, GET/DELETE /api/documents/{docId}
- file_path format: {tenant_id}/{case_id}/{uuid}_{filename}
- Case events logged on upload/delete
- Added SUPABASE_SERVICE_KEY to config for server-side storage access
- Fixed pre-existing duplicate writeJSON/writeError in appointments.go
14 lines
267 B
Plaintext
14 lines
267 B
Plaintext
# KanzlAI Environment Variables
|
|
# Copy to .env and fill in values: cp .env.example .env
|
|
|
|
# Backend
|
|
PORT=8080
|
|
|
|
# Supabase (required for database access)
|
|
SUPABASE_URL=
|
|
SUPABASE_ANON_KEY=
|
|
SUPABASE_SERVICE_KEY=
|
|
|
|
# Claude API (required for AI features)
|
|
ANTHROPIC_API_KEY=
|