Initial commit

This commit is contained in:
2025-08-22 21:09:48 +02:00
commit 2d84f535f4
68 changed files with 34807 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
import type {TaskHandler} from "payload"
export const httpStepHandler: TaskHandler<'http-request-step'> = async ({input}) => {
if (!input) {
throw new Error('No input provided')
}
const response = await fetch(input.url)
return {
output: {
response: await response.text()
},
state: response.ok ? 'succeeded' : undefined
}
}