Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Allow Guests to view Articles
Browse files Browse the repository at this point in the history
  • Loading branch information
codydaig committed Aug 9, 2015
1 parent 21d87e9 commit cbebed9
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions modules/articles/client/config/articles.client.routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,29 @@ angular.module('articles').config(['$stateProvider',
.state('articles', {
abstract: true,
url: '/articles',
template: '<ui-view/>',
data: {
roles: ['user', 'admin']
}
template: '<ui-view/>'
})
.state('articles.list', {
url: '',
templateUrl: 'modules/articles/views/list-articles.client.view.html'
})
.state('articles.create', {
url: '/create',
templateUrl: 'modules/articles/views/create-article.client.view.html'
templateUrl: 'modules/articles/views/create-article.client.view.html',
data: {
roles: ['user', 'admin']
}
})
.state('articles.view', {
url: '/:articleId',
templateUrl: 'modules/articles/views/view-article.client.view.html'
})
.state('articles.edit', {
url: '/:articleId/edit',
templateUrl: 'modules/articles/views/edit-article.client.view.html'
templateUrl: 'modules/articles/views/edit-article.client.view.html',
data: {
roles: ['user', 'admin']
}
});
}
]);

0 comments on commit cbebed9

Please sign in to comment.