File size: 302 Bytes
aec3094
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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();
	}
}