dotnode
Version:
.NET-like MVC framework for Node.js
22 lines (13 loc) • 345 B
JavaScript
var RouteTable = function () {
this._routes = [];
};
// #region public methods
RouteTable.prototype.mapRoute = function (routeOptions) {
this._routes.push(routeOptions);
return this;
};
RouteTable.prototype.getRoutes = function () {
return this._routes;
};
// #endregion
module.exports = RouteTable;