* fix(routes): /map redirects to current challenge * fix(map): Normalize server map building Localize all server code dealing with the map * refactor(server): Remove unused services * feat(Nav): Show Map button when no panes This gives user the ability to quickly return to their challenge using a known feature * fix(server.map): Add caching to nameIdMap Add caching to nameIdMap on the server * fix(services.map): Fix map service Move map building utils to map util. Fix bad import. Normalize challenge lookup
13 lines
383 B
JavaScript
13 lines
383 B
JavaScript
import Fetchr from 'fetchr';
|
|
import getUserServices from '../services/user';
|
|
import getMapServices from '../services/map';
|
|
|
|
export default function bootServices(app) {
|
|
const userServices = getUserServices(app);
|
|
const mapServices = getMapServices(app);
|
|
|
|
Fetchr.registerFetcher(userServices);
|
|
Fetchr.registerFetcher(mapServices);
|
|
app.use('/services', Fetchr.middleware());
|
|
}
|