chore(ops): restore missing root files in newwhats.clube67.com
continuous-integration/webhook Falha no deploy de clube67_newwhats.local (VPS 4)
continuous-integration/webhook Falha no deploy de clube67_newwhats.local (VPS 4)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const routes_1 = require("./backend/routes");
|
||||
const manifest_json_1 = __importDefault(require("./manifest.json"));
|
||||
const plugin = {
|
||||
manifest: manifest_json_1.default,
|
||||
async activate(ctx) {
|
||||
const router = (0, routes_1.createFinanceRoutes)(ctx);
|
||||
ctx.app.use('/api/finance', router);
|
||||
// Listen for new partners to create initial invoice
|
||||
ctx.hooks.register('partner:created', async (data) => {
|
||||
ctx.logger.info(`Creating initial invoice for partner ${data.partnerId}`);
|
||||
});
|
||||
ctx.logger.info('Finance routes registered at /api/finance');
|
||||
},
|
||||
async deactivate(ctx) {
|
||||
ctx.logger.info('Financeiro plugin deactivated');
|
||||
},
|
||||
};
|
||||
exports.default = plugin;
|
||||
//# sourceMappingURL=index.js.map
|
||||
Reference in New Issue
Block a user