Observed since 20 Oct, 18:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
One way to create an api over multiple protocols
One way to create multiple api servers at once
npm install --save 1api
Make a basic file called index.js with the following code:
const oneApi = require('1api');
// Only a http server
const myApi = new oneApi({http: true});
// Add route
myApi.get('/welcome', (req, res) =>
{
console.log(req.apiMethod); // "HTTP" or "WS"
res.status(200).send("Welcome to this module!");
});
// create server and listen on port 3000
myApi.createServer(3000);
Start de server with node index.js
Open localhost:3000/welcome in the browser and you should see: Welcome to this module!.
All the tests are in the test folder and can be run with npm test.
//TODO: Add a general test with http server and websocket server
//TODO: Add coding style
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us. //TODO: Create CONTRIBUTING.md
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:25 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:6bc4139aedbc1d6893feb2bbb756fe7d1d217088bc987fe2bb6afb5226793896