chore(ops): restore missing root files in newwhats.clube67.com
continuous-integration/webhook Falha no deploy de clube67_newwhats.local (VPS 4)

This commit is contained in:
VPS 4 Deploy Agent
2026-05-18 03:27:25 +02:00
parent 5ec6bd6354
commit 0dc5eefa06
406 changed files with 237013 additions and 0 deletions
@@ -0,0 +1,25 @@
import { PluginInstance, PluginContext } from '../../backend/src/core/types';
import { createFinanceRoutes } from './backend/routes';
import manifest from './manifest.json';
const plugin: PluginInstance = {
manifest: manifest as any,
async activate(ctx: PluginContext): Promise<void> {
const router = createFinanceRoutes(ctx);
ctx.app.use('/api/finance', router);
// Listen for new partners to create initial invoice
ctx.hooks.register('partner:created', async (data: { partnerId: string }) => {
ctx.logger.info(`Creating initial invoice for partner ${data.partnerId}`);
});
ctx.logger.info('Finance routes registered at /api/finance');
},
async deactivate(ctx: PluginContext): Promise<void> {
ctx.logger.info('Financeiro plugin deactivated');
},
};
export default plugin;