Restructure backend into modular API layers with admin/organizador/invitados routes, add role-based middleware, flatten module models, and update build scripts
This commit is contained in:
16
packages/legacy/src/todo/todo.registration.ts
Normal file
16
packages/legacy/src/todo/todo.registration.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Injectable, OnModuleInit } from '@nestjs/common';
|
||||
import { ModuleRegistryService } from '../core/services/module-registry.service';
|
||||
|
||||
@Injectable()
|
||||
export class TodoModuleRegistration implements OnModuleInit {
|
||||
constructor(private readonly moduleRegistry: ModuleRegistryService) {}
|
||||
|
||||
onModuleInit() {
|
||||
this.moduleRegistry.registerModule({
|
||||
key: 'todo',
|
||||
name: 'To-do',
|
||||
description: 'Lista de pendientes para la organización del matrimonio.',
|
||||
routePrefix: '/todo',
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user