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'; import { ServiceParams } from '../containers/Service/ServiceContext'; const services = [ contractors, products, waybills, transfers, account, ] as ServiceParams[]; services.forEach((service: any) => registerServiceHooks(service.route)); export default services;