post and get route toturail node js code example
Example 1: node js express url parameters
// http://localhost:8080/api/1
app.get('/api/:version', function(req, res) {
res.send(req.params.version);
});
Example 2: express route parameters
var express = require('express');
var http = require('http');
var app = express();