mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
17 lines
452 B
TypeScript
17 lines
452 B
TypeScript
import { Router } from 'express';
|
|
import { Container, Service } from 'typedi';
|
|
import Bills from 'api/controllers/Purchases/Bills'
|
|
import BillPayments from 'api/controllers/Purchases/BillsPayments';
|
|
|
|
@Service()
|
|
export default class PurchasesController {
|
|
|
|
router() {
|
|
const router = Router();
|
|
|
|
router.use('/bills', Container.get(Bills).router());
|
|
router.use('/bill_payments', Container.get(BillPayments).router());
|
|
|
|
return router;
|
|
}
|
|
} |