feat(challenge): Initial build of the challenge service
This commit is contained in:
committed by
Stuart Taylor
parent
d17c2d33eb
commit
a7587ed6f0
@@ -2,14 +2,19 @@ import Fetchr from 'fetchr';
|
||||
import getUserServices from '../services/user';
|
||||
import getMapServices from '../services/map';
|
||||
import getMapUiServices from '../services/mapUi';
|
||||
import getChallengesForBlockService from '../services/challenge';
|
||||
|
||||
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);
|
||||
const user = getUserServices(app);
|
||||
const map = getMapServices(app);
|
||||
const mapUi = getMapUiServices(app);
|
||||
const challenge = getChallengesForBlockService(app);
|
||||
|
||||
Fetchr.registerFetcher(user);
|
||||
Fetchr.registerFetcher(map);
|
||||
Fetchr.registerFetcher(mapUi);
|
||||
Fetchr.registerFetcher(challenge);
|
||||
|
||||
app.use('/services', Fetchr.middleware());
|
||||
}
|
||||
|
Reference in New Issue
Block a user