1.0.0 • Published 1 year ago

qcobjects-handler-hello-world v1.0.0

Weekly downloads
-
License
LGPL-3.0-or-later
Repository
-
Last release
1 year ago

QCObjects Handler Hello World

Install

npm i qcobjects-handler-hello-world

Setup in your config.json

"backend":{
    "routes":[
        {
            "name":"Hello World!",
            "description":"Hello world Microservice!",
            "path":"^/hello-world",
            "microservice":"qcobjects-handler-hello-world",
            "headers": {
              "content-type": "text/html; charset=utf-8"
            },
            "responseHeaders":{
            },
            "cors":{
              "allow_origins":"*"
            }
        }
    ]
}

# Visit

Visit https://localhost:port/hello-world

Create your own microservice

To make your own microservice, you can generate it with QCObjects CLI using this package as template:

qcobjects create --custom=qcobjects-handler-hello-world myown-handler-microservice