This directory contains the Hono-based API server for XMP file conversion.
index.ts - Main Hono application with API endpointsServes the main web interface by reading and returning the frontend HTML.
Converts uploaded XMP files to Lightroom configuration format.
Request:
multipart/form-dataxmpFile field containing the XMP fileResponse:
{ "success": true, "config": "LIGHTROOM_GLOBAL_EXPOSURE=0.000000\n..." }
Error Response:
{ "success": false, "error": "Error message" }
Health check endpoint that returns server status and timestamp.
The backend serves static files from the frontend and shared directories using Val Town's utility functions:
/frontend/* - Frontend assets/shared/* - Shared TypeScript modules