kopia lustrzana https://github.com/c9/core
Simplify routing
rodzic
37286ec012
commit
7fabaaa51f
|
@ -140,7 +140,9 @@ module.exports = function Section(name, description, types) {
|
|||
handler(req, res, next);
|
||||
});
|
||||
|
||||
this._route( path, { method: "get" }, middlewares );
|
||||
this._route(path, {
|
||||
method: "get"
|
||||
}, middlewares);
|
||||
};
|
||||
|
||||
this._rootHandler = function(req, res) {
|
||||
|
|
Ładowanie…
Reference in New Issue