mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-28 04:01:36 -04:00
16 lines
521 B
JavaScript
16 lines
521 B
JavaScript
import Fetchr from 'fetchr';
|
|
import getUserServices from '../services/user';
|
|
import getMapServices from '../services/map';
|
|
import getMapUiServices from '../services/mapUi';
|
|
|
|
export default function bootServices(app) {
|
|
const userServices = getUserServices(app);
|
|
const mapServices = getMapServices(app);
|
|
const mapUiServices = getMapUiServices(app);
|
|
|
|
Fetchr.registerFetcher(userServices);
|
|
Fetchr.registerFetcher(mapServices);
|
|
Fetchr.registerFetcher(mapUiServices);
|
|
app.use('/services', Fetchr.middleware());
|
|
}
|