/* import { getService } from "@apps/server/src/core/service-registry"; */ import { IPackageServer } from "@libs/package"; //import initInvoiceModel from './models/contact.model'; export const InvoicesPackage: IPackageServer = { metadata: { name: "invoices", version: "1.0.0", dependencies: ["contacts"], }, init(app) { // const contacts = getService("contacts"); app.get("/invoices", (req, res) => { // const customer = await contacts.getContactById('123'); res.send("AquĆ­ van las facturas"); }); }, registerDependencies() { return { models: [ /*initInvoiceModel*/ ], services: { getInvoice: () => {}, /*...*/ }, }; }, };