UNPKG

empress-blog

Version:

Fully-functional, SEO friendly static site implementation of a blog system built on Ember.

16 lines (13 loc) 353 B
/* eslint-disable ember/no-classic-classes */ import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; import RSVP from 'rsvp'; export default Route.extend({ store: service(), model() { return RSVP.hash({ authors: this.store.findAll('author'), tags: this.store.findAll('tag'), }); }, });