Socket
Book a DemoInstallSign in
Socket

directus-extension-flowtohtml

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

directus-extension-flowtohtml

Endpoint to execute a flow and return a custom HTML response with custom HTTP headers

1.0.3
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
0
Weekly downloads
 
Created
Source

Execute a Flow and Return a Custom HTML Response with Custom HTTP Headers

Create a Webhook Flow

Choose a webhook and select GET.

URL to Reach

To access the extension and run your flow, change the URL of your flow from:

.../flows/trigger/:id-of-your-flow

to

.../flowtohtml/:id-of-your-flow

You can also add queries to the URL, such as:

.../flowtohtml/:id-of-your-flow?key=value

How to Format Your Payload

The data at the end of your flow must be in the following JSON format:

{
    "code": 307,
    "headers": [
        {
            "name": "location",
            "value": "https://goodbye.world"
        }
    ],
    "html": "<p>Hello world!</p>"
}

code is required.

headers and html are optional.

headers can contain as many entries as you need.

Keywords

directus

FAQs

Package last updated on 27 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.