Files
hosted-gateway-frontend/app/routes.ts
T
Felix FaerberandClaude Opus 4.7 2025314836 add /chat route — in-app chat against the gateway
Uses the user's JWT against /v1/models + /v1/chat/completions (the
gateway's /v1 routes already accept JWT — no API key needed for the
in-app chat path; API keys remain for external SDK usage).

Single-turn UX for now, no streaming. Model picker reads /v1/models.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 13:23:09 +03:00

11 lines
344 B
TypeScript

import { type RouteConfig, index, route } from '@react-router/dev/routes';
export default [
index('routes/_index.tsx'),
route('signup', 'routes/signup.tsx'),
route('verify', 'routes/verify.tsx'),
route('login', 'routes/login.tsx'),
route('account', 'routes/account.tsx'),
route('chat', 'routes/chat.tsx'),
] satisfies RouteConfig;