Archived
11 lines
411 B
TypeScript
11 lines
411 B
TypeScript
import type { FastifyInstance } from "fastify";
|
|
import type { WorkspaceActivityResponse } from "../../shared/apiTypes.js";
|
|
|
|
export interface WorkspaceActivityRouteService {
|
|
snapshot(): WorkspaceActivityResponse;
|
|
}
|
|
|
|
export function registerWorkspaceActivityRoutes(app: FastifyInstance, activity: WorkspaceActivityRouteService, prefix = ""): void {
|
|
app.get(`${prefix}/activity`, () => activity.snapshot());
|
|
}
|