6d89d8a609
- GET /my/directory in MyService/MyController with q + interest filters - Respects directoryVisible; excludes self; never exposes jid/phone - q searches displayName/hometown/currentLocation (case-insensitive); interest filter via array `has`; aggregates top-20 interest filter chips - BFF route forwards query string - /my/directory page: server-rendered cards (avatar initials, location, interest tags) - DirectorySearch client component: debounced search box + toggleable interest chips that drive URL params - Directory nav item Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
401 B
TypeScript
12 lines
401 B
TypeScript
import { jsonResponse, memberApiFetch } from '../../../_lib/api';
|
|
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
export async function GET(request: Request): Promise<Response> {
|
|
const url = new URL(request.url);
|
|
const qs = url.searchParams.toString();
|
|
const res = await memberApiFetch(`/my/directory${qs ? `?${qs}` : ''}`);
|
|
const body = await res.json();
|
|
return jsonResponse(body, res.status);
|
|
}
|