<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
| const fastify = require('fastify')(); | |
| fastify.get('/', (request, reply) => reply.send({ hello: 'world' })); | |
| if (require.main === module) { | |
| // called directly i.e. "node app" | |
| fastify.listen(3000, (err) => { | |
| if (err) console.error(err); | |
| console.log(`server listening on ${fastify.server.address().port}`); | |
| }); |
| 'use strict' | |
| const express = require('express') | |
| const http = require('http') | |
| const app = express() | |
| ////////////////////////////////// ROUTER ///////////////////////////////////// | |
| const router = express.Router() |
| /******************************************************************************* | |
| * Copyright (c) 2017 Nicola Del Gobbo | |
| * Licensed under the Apache License, Version 2.0 (the "License"); you may not | |
| * use this file except in compliance with the License. You may obtain a copy of | |
| * the license at http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS | |
| * OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY | |
| * IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | |
| * MERCHANTABLITY OR NON-INFRINGEMENT. |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| 'use strict' | |
| const express = require('express') | |
| const http = require('http') | |
| const app = express() | |
| function handleGet (req, res) { | |
| res.send('/GET handler') | |
| } |
| echo '[Unit] | |
| Description=High-performance, schema-free document-oriented database | |
| After=syslog.target network.target | |
| [Service] | |
| User=mongodb | |
| Group=mongodb | |
| ExecStart=/usr/bin/mongod -f /etc/mongod.conf | |
| [Install] |
I hereby claim:
To claim this, I am signing this object: