Skip to content

Custom approval script #1620

Closed Answered by rubenfiszel
hialvaro asked this question in Questions
May 22, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Yes, you can use getResumeEndpoints like in this example: https://hub.windmill.dev/scripts/windmill/1391/return-resume-and-cancel-endpoints-windmill

import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts"

export async function main(approver?: string) {
  const endpoints = await wmill.getResumeEndpoints(approver)
  console.log(`Approval page at ${endpoints.approvalPage}`)
  return endpoints
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hialvaro
Comment options

Answer selected by hialvaro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants