mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
add server to monorepo.
This commit is contained in:
25
packages/server/src/api/controllers/Purchases/index.ts
Normal file
25
packages/server/src/api/controllers/Purchases/index.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Router } from 'express';
|
||||
import { Container, Service } from 'typedi';
|
||||
import Bills from '@/api/controllers/Purchases/Bills';
|
||||
import BillPayments from '@/api/controllers/Purchases/BillsPayments';
|
||||
import BillAllocateLandedCost from './LandedCost';
|
||||
import VendorCredit from './VendorCredit';
|
||||
import VendorCreditApplyToBills from './VendorCreditApplyToBills';
|
||||
|
||||
@Service()
|
||||
export default class PurchasesController {
|
||||
router() {
|
||||
const router = Router();
|
||||
|
||||
router.use('/bills', Container.get(Bills).router());
|
||||
router.use('/bill_payments', Container.get(BillPayments).router());
|
||||
router.use('/landed-cost', Container.get(BillAllocateLandedCost).router());
|
||||
router.use('/vendor-credit', Container.get(VendorCredit).router());
|
||||
router.use(
|
||||
'/vendor-credit',
|
||||
Container.get(VendorCreditApplyToBills).router()
|
||||
);
|
||||
|
||||
return router;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user