feat: add web app pages for org portal, thread viewer, and admin org management

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-17 15:40:40 +05:30
parent 435b0e7806
commit 622737fdca
25 changed files with 1394 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { getApiBaseUrl, jsonResponse } from '../../../../_lib/api';
export const dynamic = 'force-dynamic';
export async function GET(): Promise<Response> {
const token = await (await import('next/headers')).cookies().then(c => c.get('tower_org_token')?.value);
const res = await fetch(`${getApiBaseUrl()}/auth/org/me`, {
headers: {
Accept: 'application/json',
...(token ? { Authorization: `Bearer ${token}` } : {}),
},
cache: 'no-store',
});
const body = await res.json();
return jsonResponse(body, res.status);
}