Vulcan/packages/example-simple/lib/modules/routes.js

12 lines
547 B
JavaScript
Raw Normal View History

// 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
// 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
// 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' });