lib/Router.js
function Route(method, route, fn) {
    this.method = method;
    this.route = route;
    this.fn = fn;

    return function (app) {
        var middleware = exports.isAppSettingsRoute(route) ? utils.getSettingsMiddlewares() :
            utils.getRequestMiddlewares();

        if (method == "get") {
            app.get(route, middleware, fn)
        }
        else if (method == "post") {
            app.post(route, middleware, fn);
        }
//        var methodRoutes = app.routes[method];
//        return methodRoutes[methodRoutes.length - 1];
    };
}
function Route(method, route, fn) {
    this.method = method;
    this.route = route;
    this.fn = fn;

    return function (app) {
        var middleware = exports.isAppSettingsRoute(route) ? utils.getSettingsMiddlewares() :
            utils.getRequestMiddlewares();

        if (method == "get") {
            app.get(route, middleware, fn)
        }
        else if (method == "post") {
            app.post(route, middleware, fn);
        }
//        var methodRoutes = app.routes[method];
//        return methodRoutes[methodRoutes.length - 1];
    };
}
function Route ( method , route , fn ) { this . method = method ; this . route = route ; this . fn = fn ; return function ( app ) { var middleware = exports . isAppSettingsRoute ( route ) ? utils . getSettingsMiddlewares ( ) : utils . getRequestMiddlewares ( ) ; if ( method == "get" ) { app . get ( route , middleware , fn ) } else if ( method == "post" ) { app . post ( route , middleware , fn ) ; } //        var methodRoutes = app.routes[method]; //        return methodRoutes[methodRoutes.length - 1]; } ; }
Returns a fn, which return the express route object
@param method
@param route
@param fn
Returns a fn which return the express route object