Files
freeCodeCamp/server/boot/a-services.js
Berkeley Martinez a1a4ac883d add user stores/actions
construct fetchr on every request
2015-07-24 22:27:52 -07:00

12 lines
388 B
JavaScript

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