dify/web/app/components/workflow/nodes/http/default.ts

29 lines
560 B
TypeScript

import type { NodeDefault } from '../../types'
import { AuthorizationType, BodyType, type HttpNodeType, Method } from './types'
const nodeDefault: NodeDefault<HttpNodeType> = {
defaultValue: {
variables: [],
method: Method.get,
url: '',
authorization: {
type: AuthorizationType.none,
config: null,
},
headers: '',
params: '',
body: {
type: BodyType.none,
data: '',
},
},
getAvailablePrevNodes() {
return []
},
getAvailableNextNodes() {
return []
},
}
export default nodeDefault