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

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

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

export default services;