git ssb

0+

cel-desktop / ssb-pkg



Tree: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1

Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-79-npm / method-override / method-override.js

250 bytesRaw
1'use strict';
2
3var override = require('method-override');
4var req = { method: 'GET', headers: { } };
5var res = {};
6
7var middleware = override();
8
9middleware(req, res, function () {
10 if (req.originalMethod === 'GET') {
11 console.log('ok');
12 }
13});
14

Built with git-ssb-web