mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-13 22:41:32 -05:00
065cbc569d
No issue The following is a list of routes which are not authenticated - placeholder routes: `editor` and `content` - `application` - password routes: `forgotten`, `reset`, `signin`, `signup`
15 lines
356 B
JavaScript
15 lines
356 B
JavaScript
import AuthenticatedRoute from 'ghost/routes/authenticated';
|
|
|
|
var PostsPostRoute = AuthenticatedRoute.extend({
|
|
model: function (params) {
|
|
var post = this.modelFor('posts').findBy('id', params.post_id);
|
|
|
|
if (!post) {
|
|
this.transitionTo('posts.index');
|
|
}
|
|
|
|
return post;
|
|
}
|
|
});
|
|
|
|
export default PostsPostRoute;
|