Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

qcobjects-handler-contactform

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qcobjects-handler-contactform

QCObjects Handler for ContactForm Backend Services

latest
Source
npmnpm
Version
0.0.33
Version published
Maintainers
1
Created
Source

QCObjects Handler for ContactForm Backend Services

QCObjects Handler for ContactForm requests. This handler will allow to handle ContactForm urls like https://example.com/rest/contactform and get a notification to email and mailchimp subscribers lists.

Instructions

  • Install this dependency in your project using npm
npm i --save qcobjects-handler-contactform
  • In your config.json file, create the following paths
{
  "backend": {
    "routes": [
      {
        "name": "ContactForm Url",
        "description": "It handles the contactform url",
        "path": "^/rest/contactform$",
        "microservice": "qcobjects-handler-contactform",
        "supported_methods": ["POST"],
        "responseHeaders": {
          "Content-Type": "application/json"
        }
      }
    ]
  }
}

The contents of response is a dynamic object, you can specify any property here or even use a meta processor.

  • Start the QCObjects HTTP2 Server
qcobjects-server
  • Peer Dependencies needed

Keywords

qcobjects

FAQs

Package last updated on 19 Dec 2021

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