Migrare completă Cloudflare: toate rutele Express în Hono Worker + JWT auth în frontend

↗ view on GitHub · Mihail Nica · 2026-06-09 · fffde734

- Rescrise toate rutele Express în worker.ts (Hono + Drizzle + D1):
  Chat CRUD (list, create, detail, update, delete)
  Workflows full (CRUD + shares + hidden)
  User (profile, api keys)
  Projects (update, people, folders, chats)
  Documents (display, url, docx, versions)
  CaseLaw, Downloads
- Eliminat complet Supabase din frontend:
  misuApi.ts → JWT din localStorage
  AuthContext, login, signup → fetch direct la Worker API
  Hooks (useFetchSingleDoc, useFetchDocxBytes, useDocumentVersions)
  Componente (EditCard, AssistantMessage, DocPanel, DocxView)
- Zero referințe Supabase în frontend
- Worker API live la misu-api.mihailnica10.workers.dev
Repository mihailnica10/misu-legal
Author Mihail Nica <mihailnica10@gmail.com>
Authored
Parents 1e3f0c99
Stats 12 files changed , +1129 , -84
Part of Cloudflare replatforming: Supabase/Express → D1 + Drizzle + Hono Worker

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-fffde734.md from inside the repo you want the change in.

⬇ Download capture-commit-fffde734.md