MaazAli/phanime

View on GitHub
lib/routes/people.js

Summary

Maintainability
B
4 hrs
Test Coverage
PeopleController = RouteController.extend({
    
    onBeforeAction: function () {
        SEO.set({
            title: siteSettings.getFullTitle("People"),
            meta: {
                'description' : 'Explore the people related to anime shows on phanime'
            }
        });
        this.next();
    },

    waitOn: function () {
        return Meteor.subscribe('people');
    },

    data: function () {
        return People.find({}, {sort: {createdAt: -1}});
    }

});