{"flow":{"id":55,"summary":"HTTP route flow with preprocessor template","versions":[206,207],"created_by":"hugo697","created_at":"2024-09-23T09:27:21.795Z","votes":0,"approved":false,"apps":["windmill"],"value":{"modules":[],"preprocessor_module":{"id":"preprocessor","value":{"tag":"","type":"rawscript","content":"\nexport async function preprocessor(\n\twm_trigger: {\n\t\tkind: 'http' | 'email' | 'webhook',\n\t\thttp?: {\n\t\t\troute: string // The route path, e.g. \"/users/:id\"\n\t\t\tpath: string // The actual path called, e.g. \"/users/123\"\n\t\t\tmethod: string\n\t\t\tparams: Record<string, string>\n\t\t\tquery: Record<string, string>\n\t\t\theaders: Record<string, string>\n\t\t}\n\t},\n\t/* your other args */ \n) {\n\treturn {\n\t\t// return the args to be passed to the flow\n\t}\n}\n","language":"bun","input_transforms":{"wm_trigger":{"type":"static"}}}}},"schema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":[],"properties":{}},"description":"","recording":null,"vcreated_at":"2024-09-23T09:33:45.205Z","vcreated_by":"hugo697","comments":[]}}