@@ -3,14 +3,12 @@ const express = require("express");
33const mw = require ( "./middleware" ) ;
44const routes = require ( "./routes" ) ;
55
6- module . exports = function router ( options ) {
6+ module . exports = function ( options ) {
77 const router = express . Router ( ) ;
88
99 const defaults = [
10- mw . forwarded ,
1110 mw . errorHandler ,
1211 mw . bodyParser ,
13- null ,
1412 mw . cors ,
1513 mw . poweredBy ,
1614 mw . negotiateContent ,
@@ -19,14 +17,12 @@ module.exports = function router(options) {
1917 const endpoints = [
2018 { action : "get" , path : "/" , route : routes . hello } ,
2119 { action : "all" , path : "/ip" , route : routes . ips . one } ,
22- { action : "all" , path : "/ips" , route : routes . ips . all } ,
2320 { action : "all" , path : "/agent" , route : routes . headers . agent } ,
2421 { action : "all" , path : "/status/:code/:reason?" , route : routes . status } ,
2522 { action : "all" , path : "/headers" , route : routes . headers . all } ,
2623 { action : "all" , path : "/header/:name" , route : routes . headers . one } ,
2724 { action : "all" , path : "/header/:name/:value" , route : routes . headers . set } ,
2825 { action : "all" , path : "/cookies" , route : routes . cookies . all } ,
29- { action : "all" , path : "/forwarded" , route : routes . forwarded } ,
3026 { action : "all" , path : "/cookie/:name" , route : routes . cookies . one } ,
3127 { action : "all" , path : "/cookie/:name/:value" , route : routes . cookies . set } ,
3228 {
0 commit comments