You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
387 B
13 lines
387 B
|
10 months ago
|
import { Workflow } from "@/components/models/management/Autoflow";
|
||
|
|
import { request } from "@/components/service/index";
|
||
|
|
export const AutoflowService = {
|
||
|
|
add: (payload: Workflow) => {
|
||
|
|
return request.post("/api/workflows", payload);
|
||
|
|
},
|
||
|
|
getAll: () => request.get("/api/workflows", {}),
|
||
|
|
|
||
|
|
delete: (id: Number) => {
|
||
|
|
return request.delete(`/api/workflows/${id}`, {});
|
||
|
|
},
|
||
|
|
};
|