0.0.33 • Published 2 years ago

qcobjects-handler-contactform v0.0.33

Weekly downloads
-
License
LGPL-3.0-or-later
Repository
github
Last release
2 years ago

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

  1. Install this dependency in your project using npm
npm i --save qcobjects-handler-contactform
  1. 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.

  1. Start the QCObjects HTTP2 Server
qcobjects-server
  1. Peer Dependencies needed
0.0.33

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago