- Add package.json for backend dependencies and scripts. - Create Prisma schema for multi-tenant event management. - Implement main application module and configure global settings. - Develop authentication module with JWT and Authentik integration. - Create DTOs for guest account creation and KC management. - Implement role-based access control with custom guards and decorators. - Add services and controllers for managing KCs and guest accounts. - Set up global validation and CORS in the main application entry point. - Establish Prisma module for database access throughout the application. - Document project plan and architecture for multi-tenant platform.
8 lines
286 B
TypeScript
8 lines
286 B
TypeScript
import { SetMetadata } from '@nestjs/common';
|
|
import { Role } from './role.enum';
|
|
|
|
export const ROLES_KEY = 'roles';
|
|
|
|
/// Marks a route as requiring at least one of the given roles (scope-checked by RolesGuard).
|
|
export const Roles = (...roles: Role[]) => SetMetadata(ROLES_KEY, roles);
|