-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error logging on server; add createdAt to PostsList fragment;…
… use componentNames for base routes
- Loading branch information
Showing
4 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { getComponent, addRoute } from 'meteor/nova:core'; | ||
import { addRoute } from 'meteor/nova:core'; | ||
|
||
addRoute([ | ||
{name:'posts.list', path: '/', component: getComponent('PostsHome')}, // index route | ||
{name:'posts.daily', path:'daily', component: getComponent('PostsDaily')}, | ||
{name:'posts.single', path:'posts/:_id(/:slug)', component: getComponent('PostsSingle')}, | ||
{name:'users.single', path:'users/:slug', component: getComponent('UsersSingle')}, | ||
{name:'users.account', path:'account', component: getComponent('UsersAccount')}, | ||
{name:'resetPassword', path:'reset-password/:token', component: getComponent('UsersResetPassword')}, | ||
{name:'users.edit', path:'users/:slug/edit', component: getComponent('UsersAccount')}, | ||
{name:'posts.list', path: '/', componentName: 'PostsHome'}, // index route | ||
{name:'posts.daily', path:'daily', componentName: 'PostsDaily'}, | ||
{name:'posts.single', path:'posts/:_id(/:slug)', componentName: 'PostsSingle'}, | ||
{name:'users.single', path:'users/:slug', componentName: 'UsersSingle'}, | ||
{name:'users.account', path:'account', componentName: 'UsersAccount'}, | ||
{name:'resetPassword', path:'reset-password/:token', componentName: 'UsersResetPassword'}, | ||
{name:'users.edit', path:'users/:slug/edit', componentName: 'UsersAccount'}, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters