@vortex-js/core
Version:
A simple and powerful role-based access control (RBAC) middleware for Express.js, designed to be easy to use and integrate with your existing applications. It provides a flexible way to manage user permissions and roles, making it ideal for building secur
18 lines (17 loc) • 493 B
TypeScript
import { ModuleConfig } from "../types";
import Routes from "./Routes";
declare class Module<T> {
name: string;
routes: Routes & {
module: Module<T>;
};
bootstrap?: () => Promise<void> | void;
i18n?: ModuleConfig["i18n"];
/**
* Module class to encapsulate routes and bootstrap functionality
* @param config - Configuration object for the module
*/
constructor(config: ModuleConfig);
private addModuleToAllRoutes;
}
export default Module;