Files
freeCodeCamp/common/app/routes/Jobs/index.js
2015-09-21 12:54:33 -07:00

23 lines
419 B
JavaScript

import Jobs from './components/Jobs.jsx';
import NewJob from './components/NewJob.jsx';
import Show from './components/Show.jsx';
/*
* index: /jobs list jobs
* show: /jobs/:id show one job
* create /jobs/new create a new job
*/
export default {
childRoutes: [{
path: '/jobs',
component: Jobs
}, {
path: 'jobs/new',
component: NewJob
}, {
path: 'jobs/:id',
component: Show
}]
};