2015-07-13 00:25:01 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								import Fetchr from 'fetchr';
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								import getHikesService from '../services/hikes';
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-25 15:42:03 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								import getJobServices from '../services/job';
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-24 17:52:07 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								import getUserServices from '../services/user';
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-13 00:25:01 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								export default function bootServices(app) {
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  const hikesService = getHikesService(app);
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-25 15:42:03 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  const jobServices = getJobServices(app);
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-24 17:52:07 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  const userServices = getUserServices(app);
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-25 15:42:03 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-13 00:25:01 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  Fetchr.registerFetcher(hikesService);
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-25 15:42:03 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  Fetchr.registerFetcher(jobServices);
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-24 17:52:07 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								  Fetchr.registerFetcher(userServices);
							 | 
						
					
						
							
								
									
										
										
										
											2015-07-13 00:25:01 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								  app.use('/services', Fetchr.middleware());
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 |