add user stores/actions

construct fetchr on every request
This commit is contained in:
Berkeley Martinez
2015-07-24 17:52:07 -07:00
parent 77a0a82118
commit a1a4ac883d
10 changed files with 131 additions and 34 deletions

View File

@@ -1,8 +1,11 @@
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());
}