feat(api): port Fase 5 REST API — Bun.serve router + JWT middleware + auth/session/conversation/chat handlers + composition root

This commit is contained in:
asepharyana
2026-09-02 22:50:38 +07:00
parent 1b130e69b3
commit 49e79322b4
14 changed files with 1007 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
/**
* Zesdex REST API interface package.
* Mirrors `apps/interfaces/api/`.
*/
export * from "./dto.ts";
export { ApiError, HTTP_STATUS } from "./error.ts";
export { RateLimiter, newApiState } from "./state.ts";
export type { ApiState } from "./state.ts";
export { authenticateRequest } from "./middleware/auth.ts";
export { startApiServer } from "./server.ts";