blob: f652bd9a92cff7cbcd53781a16f9491afa62061e [file] [log] [blame]
import {Inject, Injectable} from "@angular/core";
import {ApiService} from "./api.service";
@Injectable()
export class WorkflowService {
constructor(@Inject(ApiService) private apiService:ApiService) {
}
createWorkflow(name: string, xml: any) {
return this.apiService.post("workflow/create/" + name, xml)
}
getAllWorkflows() {
return this.apiService.get("workflow").map(res => res.json());
}
}