2018-01-10 18:31:58 +09:00
|
|
|
// modules/routes.js #tutorial-step-6 -
|
|
|
|
// Thi is the file that is called into package.js that allows the component to be found.
|
|
|
|
|
|
|
|
// First, we import this from vulcan core, which is a utility to add a new route.
|
2017-09-13 16:26:52 -05:00
|
|
|
import { addRoute, Components } from 'meteor/vulcan:core';
|
2017-07-26 07:35:38 +09:00
|
|
|
|
2018-01-10 18:31:58 +09:00
|
|
|
// Then, we add the component for what we want to add.
|
2017-09-13 16:26:52 -05:00
|
|
|
import '../components/movies/MoviesList.jsx';
|
2017-07-26 07:35:38 +09:00
|
|
|
|
2018-01-10 18:31:58 +09:00
|
|
|
// Next, we add the name 'movies', the path, which is the root, and the component name 'MovieList'.
|
2017-09-13 16:26:52 -05:00
|
|
|
addRoute({ name: 'movies', path: '/', componentName: 'MoviesList' });
|