Files

14 lines
568 B
TypeScript

import { PluginInstance, PluginContext } from '../../backend/src/core/types';
import { createGoogleOAuthRoutes } from './backend/routes';
import manifest from './manifest.json';
const plugin: PluginInstance = {
manifest: manifest as any,
async activate(ctx: PluginContext): Promise<void> {
ctx.app.use('/api/auth/google', createGoogleOAuthRoutes(ctx));
ctx.logger.info('Google OAuth routes registered');
},
async deactivate(ctx: PluginContext): Promise<void> { ctx.logger.info('Google OAuth deactivated'); },
};
export default plugin;