mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
refactor: nestjs
This commit is contained in:
@@ -22,10 +22,11 @@ import {
|
||||
ApiParam,
|
||||
ApiBody,
|
||||
} from '@nestjs/swagger';
|
||||
import { PublicRoute } from '../Auth/Jwt.guard';
|
||||
|
||||
@ApiTags('Roles')
|
||||
@Controller('roles')
|
||||
@Injectable()
|
||||
@PublicRoute()
|
||||
export class RolesController {
|
||||
constructor(private readonly rolesApp: RolesApplication) {}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ export class Role extends TenantBaseModel {
|
||||
* Relationship mapping.
|
||||
*/
|
||||
static get relationMappings() {
|
||||
const { RolePermission } = require('./RolePermission');
|
||||
const { RolePermission } = require('./RolePermission.model');
|
||||
|
||||
return {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user