EmboFlow/apps/api/src/modules/runs/runs.controller.ts

22 lines
548 B
TypeScript

import type { LocalAuthContext } from "../auth/auth.controller.ts";
import { RunsService } from "./runs.service.ts";
export class RunsController {
private readonly service: RunsService;
constructor(service: RunsService) {
this.service = service;
}
createWorkflowRun(
auth: LocalAuthContext,
input: { workflowDefinitionId: string; workflowVersionId: string },
) {
return this.service.createWorkflowRun(auth, input);
}
listRunTasks(workflowRunId: string) {
return this.service.listRunTasks(workflowRunId);
}
}