mirror of
https://github.com/github/codeql.git
synced 2026-02-04 09:11:08 +01:00
22 lines
415 B
JavaScript
22 lines
415 B
JavaScript
var express = require('express');
|
|
var app = express();
|
|
|
|
app.get('/some/path', function(req, res) {
|
|
res.header(req.param("header"), req.param("val"));
|
|
res.send("val");
|
|
});
|
|
|
|
function getHandler() {
|
|
return function (req, res){}
|
|
}
|
|
app.use(getHandler());
|
|
|
|
function getHandler2() {
|
|
return function (req, res){}
|
|
}
|
|
app.use([getHandler2()]);
|
|
|
|
function handler3(req, res) {}
|
|
let array = [handler3];
|
|
app.use(array);
|