mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-14 20:00:33 +00:00
add server to monorepo.
This commit is contained in:
17
packages/server/src/api/controllers/Items/index.ts
Normal file
17
packages/server/src/api/controllers/Items/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { Router, Request, Response, NextFunction } from 'express';
|
||||
import { Container, Service } from 'typedi';
|
||||
import ItemsController from './Items';
|
||||
|
||||
import ItemTransactionsController from './ItemsTransactions';
|
||||
|
||||
@Service()
|
||||
export default class ItemsBaseController {
|
||||
router() {
|
||||
const router = Router();
|
||||
|
||||
router.use('/', Container.get(ItemsController).router());
|
||||
router.use('/', Container.get(ItemTransactionsController).router());
|
||||
|
||||
return router;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user