ui/lib/istio/addon/destination-rule/detail/route.js

12 lines
287 B
JavaScript

import Route from '@ember/routing/route';
import { get } from '@ember/object';
import { hash } from 'rsvp';
export default Route.extend({
model(params) {
const store = get(this, 'store');
return hash({ destinationRule: store.find('destinationrule', params.id), });
},
});