import Fetchr from 'fetchr'; import getHikesService from '../services/hikes'; import getJobServices from '../services/job'; import getUserServices from '../services/user'; import getMapServices from '../services/map'; export default function bootServices(app) { const hikesService = getHikesService(app); const jobServices = getJobServices(app); const userServices = getUserServices(app); const mapServices = getMapServices(app); Fetchr.registerFetcher(hikesService); Fetchr.registerFetcher(jobServices); Fetchr.registerFetcher(userServices); Fetchr.registerFetcher(mapServices); app.use('/services', Fetchr.middleware()); }