feat(API): add UpdateTemplate function to update templates via API call
This commit is contained in:
parent
05bd7b415a
commit
e67e55d94e
1 changed files with 6 additions and 0 deletions
|
|
@ -3,6 +3,8 @@ import {
|
|||
PromptTypeAPI,
|
||||
errorsTypeAPI,
|
||||
InitTypeAPI,
|
||||
TemplateVariableType,
|
||||
APITemplateType,
|
||||
} from "./../../types/api/index";
|
||||
import { APIObjectType, sendAllProps } from "../../types/api/index";
|
||||
import axios, { AxiosResponse } from "axios";
|
||||
|
|
@ -319,3 +321,7 @@ export async function postBuildInit(
|
|||
): Promise<AxiosResponse<InitTypeAPI>> {
|
||||
return await axios.post(`/api/v1/build/init`, flow);
|
||||
}
|
||||
|
||||
export async function UpdateTemplate(type:string, template:APITemplateType):Promise<AxiosResponse<APITemplateType>>{
|
||||
return await axios.post(`/api/v1/UpdateTemplate`);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue