REST endpoints for photo upload and management
file
: The image file (JPEG, PNG, etc.)metadata
: JSON string containing request metadatapackages/cloud/src/routes/photos.routes.ts:109-198
validateGlassesAuth
- Validates glasses JWT tokenuploads/photos
directoryPHOTO_TAKEN
eventsimage/*
mimetyperequestId
in metadataPHOTO_TAKEN
stream receive the photo data via WebSocket:
Code | Description |
---|---|
400 | Invalid request (missing file, invalid metadata, wrong mimetype) |
401 | Unauthorized - invalid glasses token |
404 | User session not found |
500 | Internal server error |
uploads/photos
directoryCLOUD_PUBLIC_URL
environment variable