11 lines
329 B
TypeScript
11 lines
329 B
TypeScript
|
|
import { activityEventBus } from '../../../lib/realtime';
|
||
|
|
|
||
|
|
export async function GET(request: Request): Promise<Response> {
|
||
|
|
const url = new URL(request.url);
|
||
|
|
const projectRoot = url.searchParams.get('projectRoot') || undefined;
|
||
|
|
|
||
|
|
const history = activityEventBus.getHistory(projectRoot);
|
||
|
|
|
||
|
|
return Response.json(history);
|
||
|
|
}
|