mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-01 17:27:14 +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();
|
|
}
|
|
}
|