Files
clube67_newwhats.local/newwhats.clube67.com/newwhats.local/plugins/core-auth/index.ts
T
VPS 4 Deploy Agent 2f8c04a0a7
continuous-integration/webhook Falha no deploy de clube67_newwhats.local (VPS 4)
chore(ops): restore all source files in newwhats.clube67.com
2026-05-18 03:28:29 +02:00

24 lines
763 B
TypeScript

// ============================================================
// Plugin: core-auth — Entry Point
// ============================================================
import { PluginInstance, PluginContext } from '../../backend/src/core/types';
import { createAuthRoutes } from './backend/routes';
import manifest from './manifest.json';
const plugin: PluginInstance = {
manifest: manifest as any,
async activate(ctx: PluginContext): Promise<void> {
const router = createAuthRoutes(ctx);
ctx.app.use('/api/auth', router);
ctx.logger.info('Auth routes registered at /api/auth');
},
async deactivate(ctx: PluginContext): Promise<void> {
ctx.logger.info('Auth plugin deactivated');
},
};
export default plugin;