@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
17 lines (16 loc) • 400 B
TypeScript
import { ModuleConfig } from "../types";
import Routes from "./Routes";
declare class Module<T> {
name: string;
routes: Routes & {
module: Module<T>;
};
config: T;
bootstrap?: () => Promise<void> | void;
i18n?: {
[key: string]: Record<string, string>;
};
constructor(config: ModuleConfig<T>);
private addModuleToAllRoutes;
}
export default Module;