Feature/app module agnostic

elsium-ai/elsium-ai·May 16, 2026·✅ Merged

Duplicate get method in hono-adapter.ts — context getter silently replaced route registration, causing 404 on all GET endpoints.

The hono-adapter.ts file contained a critical bug where two different functions shared the same name 'get' in a JavaScript object literal. One was for route registration (get(app, path, handler)) and the other for retrieving context values (get(c, key)). Because JavaScript object literals overwrite duplicate keys, the context getter silently replaced the route registration method — causing all GET endpoints to return 404 responses.

This PR renamed the context getter from get(c, key) to getContext(c, key) to eliminate the naming collision, and updated all references across adapter.ts, hono-adapter.ts, middleware.ts, and tenant.ts. The fix involved 19 files with 495 additions and 365 deletions, restoring proper GET route registration across the entire adapter layer.

GitHub
LinkedIn
LeetCode