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

27 lines
527 B
JavaScript
Raw Normal View History

import Jobs from './components/Jobs.jsx';
2015-09-14 17:31:48 -07:00
import NewJob from './components/NewJob.jsx';
2015-08-29 01:00:52 -07:00
import Show from './components/Show.jsx';
2015-09-26 22:23:56 -07:00
import Preview from './components/Preview.jsx';
2015-06-17 21:04:28 -07:00
/*
2015-08-29 01:00:52 -07:00
* index: /jobs list jobs
* show: /jobs/:id show one job
* create /jobs/new create a new job
2015-06-17 21:04:28 -07:00
*/
export default {
2015-08-29 01:00:52 -07:00
childRoutes: [{
path: '/jobs',
2015-08-29 01:00:52 -07:00
component: Jobs
2015-09-14 17:31:48 -07:00
}, {
path: 'jobs/new',
component: NewJob
2015-09-26 22:23:56 -07:00
}, {
path: 'jobs/new/preview',
component: Preview
2015-08-29 01:00:52 -07:00
}, {
path: 'jobs/:id',
component: Show
}]
2015-06-17 21:04:28 -07:00
};