Files
freeCodeCamp/common/app/routes/Hikes/index.js

21 lines
428 B
JavaScript
Raw Normal View History

2015-07-03 20:42:54 -07:00
import Hikes from './components/Hikes.jsx';
2015-07-09 00:29:29 -07:00
import Lecture from './components/Lecture.jsx';
import Question from './components/Question.jsx';
2015-07-03 20:42:54 -07:00
2015-07-04 08:16:42 -07:00
/*
* show video /hikes/someVideo
* show question /hikes/someVideo/question1
*/
2015-07-03 20:42:54 -07:00
export default {
2015-07-09 00:29:29 -07:00
path: 'hikes',
component: Hikes,
childRoutes: [{
path: ':dashedName',
2015-07-09 00:29:29 -07:00
component: Lecture
}, {
2015-07-15 20:50:11 -07:00
path: ':dashedName/questions/:number',
2015-07-09 00:29:29 -07:00
component: Question
}]
2015-07-03 20:42:54 -07:00
};