Archived
feat: show project and workspace activity indicators
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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());
|
||||
}
|
||||
Reference in New Issue
Block a user