mirror of https://github.com/Budibase/budibase.git
16 changed files with 77 additions and 29 deletions
@ -0,0 +1,41 @@ |
|||
/** |
|||
* Note, there is some functionality in this that is not currently exposed as it |
|||
* is complex and maybe better to be opinionated here. |
|||
* GET/DELETE requests cannot handle body elements so they will not be sent if configured. |
|||
*/ |
|||
|
|||
module.exports.definition = { |
|||
name: "Backend log", |
|||
tagline: "Console log a value in the backend", |
|||
icon: "ri-server-line", |
|||
description: "Logs the given text to the server (using console.log)", |
|||
type: "ACTION", |
|||
stepId: "SERVER_LOG", |
|||
inputs: { |
|||
text: "", |
|||
}, |
|||
schema: { |
|||
inputs: { |
|||
properties: { |
|||
text: { |
|||
type: "string", |
|||
title: "URL", |
|||
}, |
|||
}, |
|||
required: ["text"], |
|||
}, |
|||
outputs: { |
|||
properties: { |
|||
success: { |
|||
type: "boolean", |
|||
description: "Whether the action was successful", |
|||
}, |
|||
}, |
|||
required: ["success"], |
|||
}, |
|||
}, |
|||
} |
|||
|
|||
module.exports.run = async function ({ inputs, appId }) { |
|||
console.log(`App ${appId} - ${inputs.text}`) |
|||
} |
|||
Loading…
Reference in new issue