summaryrefslogtreecommitdiff
path: root/src/services/index.ts
blob: df2305c5084ed0ea7bd008e6e453151329dbe7e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import accounts from './accounts';
import contractors from './contractors';
import waybills from './waybills';
import transfers from './transfers';
import products from './products';
import { registerServiceHooks } from '../hooks/useAPIClient';

const services = [
  contractors,
  products,
  waybills,
  transfers,
  accounts,
];

services.forEach(service => registerServiceHooks(service.route));

export default services;