mirror of https://github.com/langgenius/dify.git
29 lines
560 B
TypeScript
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
|