mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-08-28 22:30:37 +02:00
14 lines
302 B
TypeScript
14 lines
302 B
TypeScript
import { Get, RestController } from '@n8n/decorators';
|
|
|
|
import { RoleService } from '@/services/role.service';
|
|
|
|
@RestController('/roles')
|
|
export class RoleController {
|
|
constructor(private readonly roleService: RoleService) {}
|
|
|
|
@Get('/')
|
|
getAllRoles() {
|
|
return this.roleService.getAllRoles();
|
|
}
|
|
}
|