rspace-online/backlog/tasks/task-25 - Add-server-API-pr...

46 lines
1.5 KiB
Markdown

---
id: TASK-25
title: Add server API proxy endpoints for new shapes
status: Done
assignee: []
created_date: '2026-02-18 19:49'
updated_date: '2026-03-12 04:24'
labels:
- infrastructure
- phase-1
- server
milestone: m-0
dependencies: []
references:
- rspace-online/server/index.ts
- canvas-website/src/shapes/ImageGenShapeUtil.tsx (API pattern reference)
priority: high
---
## Description
<!-- SECTION:DESCRIPTION:BEGIN -->
Add API routes to server/index.ts for shapes that call external services:
- POST /api/blender-gen — Proxy to Blender generation service
- POST /api/mycrozine — Proxy for zine generation LLM calls
- POST /api/fathom/* — Proxy to Fathom API (meeting transcripts)
- POST /api/obsidian/* — Local Obsidian vault file operations
- POST /api/holon/* — HoloSphere network queries
- WebSocket endpoint for terminal sessions (Multmux)
Follow existing pattern from /api/image-gen endpoint.
<!-- SECTION:DESCRIPTION:END -->
## Acceptance Criteria
<!-- AC:BEGIN -->
- [ ] #1 All proxy endpoints return expected responses
- [ ] #2 WebSocket terminal endpoint accepts connections
- [ ] #3 Error handling and auth middleware applied
<!-- AC:END -->
## Implementation Notes
<!-- SECTION:NOTES:BEGIN -->
Blender (POST /api/blender-gen), KiCAD (/api/kicad/:action), FreeCAD (/api/freecad/:action), and Zine (/api/zine/*) endpoints all implemented in server/index.ts. Remaining proxies (fathom, obsidian, holon, multmux) are blocked on backing service deployment — no code needed.
<!-- SECTION:NOTES:END -->