Skip to content

Commit

Permalink
lighter express
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Nov 21, 2024
1 parent df52732 commit c4db931
Show file tree
Hide file tree
Showing 6 changed files with 999 additions and 23 deletions.
2 changes: 1 addition & 1 deletion lib/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var compileTrust = require('./utils').compileTrust;
var merge = require('utils-merge');
var resolve = require('path').resolve;
var once = require('once')
var Router = require('router');
var Router = require('./router');
var setPrototypeOf = require('setprototypeof')

/**
Expand Down
5 changes: 2 additions & 3 deletions lib/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ var bodyParser = require('body-parser')
var EventEmitter = require('events').EventEmitter;
var mixin = require('merge-descriptors');
var proto = require('./application');
var Router = require('router');
var req = require('./request');
var res = require('./response');

Expand Down Expand Up @@ -67,8 +66,8 @@ exports.response = res;
* Expose constructors.
*/

exports.Route = Router.Route;
exports.Router = Router;
exports.Route = require('./router/route')
exports.Router = require('./router/layer')

/**
* Expose middleware
Expand Down
Loading

0 comments on commit c4db931

Please sign in to comment.