2025-06-11 13:13:21 +00:00
|
|
|
import { IModuleServer, ModuleParams } from "@erp/core/api";
|
2025-05-09 10:45:32 +00:00
|
|
|
|
|
|
|
|
export const authAPIModule: IModuleServer = {
|
2025-06-11 13:13:21 +00:00
|
|
|
name: "auth",
|
|
|
|
|
version: "1.0.0",
|
|
|
|
|
dependencies: [],
|
2025-05-09 10:45:32 +00:00
|
|
|
init(params: ModuleParams) {
|
|
|
|
|
// const contacts = getService<ContactsService>("contacts");
|
|
|
|
|
const { logger } = params;
|
|
|
|
|
//invoicesRouter(params);
|
2025-05-20 10:08:24 +00:00
|
|
|
logger.info("🚀 Auth module initialized", { label: "auth" });
|
2025-05-09 10:45:32 +00:00
|
|
|
},
|
|
|
|
|
registerDependencies(params: ModuleParams) {
|
|
|
|
|
const { database, logger } = params;
|
2025-05-20 10:08:24 +00:00
|
|
|
logger.info("🚀 Auth module dependencies registered", { label: "auth" });
|
2025-05-09 10:45:32 +00:00
|
|
|
return {
|
|
|
|
|
//models,
|
|
|
|
|
services: {
|
|
|
|
|
/*...*/
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
};
|