| import { Get, RestController } from '@n8n/decorators'; | |
| import { RoleService } from '@/services/role.service'; | |
| ('/roles') | |
| export class RoleController { | |
| constructor(private readonly roleService: RoleService) {} | |
| ('/') | |
| getAllRoles() { | |
| return this.roleService.getAllRoles(); | |
| } | |
| } | |