| 
									
										
										
										
											2016-02-09 23:22:42 -05:00
										 |  |  | module.exports = function(app) { | 
					
						
							|  |  |  |   var router = app.loopback.Router(); | 
					
						
							| 
									
										
										
										
											2016-07-28 15:31:17 -07:00
										 |  |  |   router.get('/wiki/*', showForum); | 
					
						
							| 
									
										
										
										
											2016-02-09 23:22:42 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  |   app.use(router); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-07-28 15:31:17 -07:00
										 |  |  |   function showForum(req, res) { | 
					
						
							|  |  |  |     res.redirect( | 
					
						
							|  |  |  |       'http://forum.freecodecamp.com/' | 
					
						
							| 
									
										
										
										
											2016-03-25 13:48:42 -07:00
										 |  |  |     ); | 
					
						
							| 
									
										
										
										
											2016-02-09 23:22:42 -05:00
										 |  |  |   } | 
					
						
							|  |  |  | }; |