mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
17 lines
314 B
JavaScript
17 lines
314 B
JavaScript
var express = require('express');
|
|
var app = express();
|
|
|
|
app.param('foo', (req, res, next, value) => {
|
|
console.log(req.query.xx);
|
|
console.log(req.body.xx);
|
|
if (value) {
|
|
res.send(value);
|
|
} else {
|
|
next();
|
|
}
|
|
});
|
|
|
|
app.get('/hello/:foo', function(req, res) {
|
|
res.send("Hello");
|
|
});
|