mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
add server to monorepo.
This commit is contained in:
22
packages/server/src/api/controllers/Roles/index.ts
Normal file
22
packages/server/src/api/controllers/Roles/index.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import { Router, Request, Response, NextFunction } from 'express';
|
||||
|
||||
import BaseController from '../BaseController';
|
||||
import { Container, Service, Inject } from 'typedi';
|
||||
|
||||
import RolesService from '@/services/Roles/RolesService';
|
||||
import PermissionsSchema from './PermissionsSchema';
|
||||
import RolesController from './Roles';
|
||||
@Service()
|
||||
export default class RolesBaseController extends BaseController {
|
||||
@Inject()
|
||||
rolesService: RolesService;
|
||||
|
||||
router() {
|
||||
const router = Router();
|
||||
|
||||
router.use('/', Container.get(PermissionsSchema).router());
|
||||
router.use('/', Container.get(RolesController).router());
|
||||
|
||||
return router;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user