qcobjects-handler-hello-world
v1.0.0
Published
A Micro-Service Handler for QCObjects Server
Downloads
50
Maintainers
Readme
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