Backend

Hono-based API server for the running clothes logger.

Environment Variables

  • ANTHROPIC_API_KEY: API key for Claude AI recommendations

Routes

  • GET /api/run-logs: Get all run logs
  • GET /api/run-logs/:id: Get a specific run log
  • POST /api/run-logs: Create a new run log
  • PUT /api/run-logs/:id: Update a run log
  • DELETE /api/run-logs/:id: Delete a run log
  • GET /api/weather/current?lat=...&lon=...: Get current weather
  • GET /api/weather/forecast?lat=...&lon=...&datetime=...: Get forecast weather
  • POST /api/recommendations: Get clothing recommendation based on weather