2015-07-13 00:25:01 -07:00
|
|
|
import Fetchr from 'fetchr';
|
2015-07-24 17:52:07 -07:00
|
|
|
import getUserServices from '../services/user';
|
2016-03-11 21:45:58 -08:00
|
|
|
import getMapServices from '../services/map';
|
2015-07-13 00:25:01 -07:00
|
|
|
|
|
|
|
export default function bootServices(app) {
|
2015-07-24 17:52:07 -07:00
|
|
|
const userServices = getUserServices(app);
|
2016-03-11 21:45:58 -08:00
|
|
|
const mapServices = getMapServices(app);
|
2015-07-25 15:42:03 -07:00
|
|
|
|
2015-07-24 17:52:07 -07:00
|
|
|
Fetchr.registerFetcher(userServices);
|
2016-03-11 21:45:58 -08:00
|
|
|
Fetchr.registerFetcher(mapServices);
|
2015-07-13 00:25:01 -07:00
|
|
|
app.use('/services', Fetchr.middleware());
|
|
|
|
}
|