@ebonydevcopy/framework
Version:
A module-based NodeJS chatbot framework.
24 lines • 601 B
TypeScript
/**
* ebony-framework
*
* @module routers/BasicRouter
* @author Christos Panagiotakopoulos <chrispanag@gmail.com>
* @copyright Copyright(c) 2020 Christos Panagiotakopoulos
* @license MIT
*
*/
/**
* A Basic Router Class
*/
export default class BasicRouter {
private routes;
/**
* Adds routes to this router
*/
importRoutes(routes?: {}): void;
/**
* Checks if the route exists and if yes returns the function. If it doesn't exist it returns false
*/
getRoute(route: string): ((...args: any[]) => any) | false;
}
//# sourceMappingURL=BasicRouter.d.ts.map