2016-03-05 21:06:04 -08:00
|
|
|
import Challenges from './components/Challenges.jsx';
|
|
|
|
|
|
|
|
export default {
|
2016-04-18 18:58:29 -07:00
|
|
|
path: 'challenges(/:dashedName)',
|
|
|
|
component: Challenges,
|
|
|
|
onEnter(nextState, replace) {
|
|
|
|
// redirect /challenges to /map
|
|
|
|
if (nextState.location.pathname === '/challenges') {
|
|
|
|
replace('/map');
|
|
|
|
}
|
|
|
|
}
|
2016-03-05 21:06:04 -08:00
|
|
|
};
|