@lund-org/cherry
Version:
A light framework to quickly create a web server
19 lines (15 loc) • 439 B
JavaScript
const CherryRouteManager = require('../abstract/CherryRouteManager')
class RouteManager extends CherryRouteManager {
constructor (routers) {
super()
this.Routers = routers
}
/**
* Register a route and add it to the pool of routes
* @param {Object} routeConfig The configuration of the route
*/
registerRoute (routeConfig) {
super.registerRoute(routeConfig, this.Routers)
}
}
module.exports = RouteManager