MaazAli/phanime

View on GitHub
lib/routes/characters.js

Summary

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

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

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

});