ui/app/admin-tab/auth/route.js

10 lines
286 B
JavaScript

import Ember from 'ember';
export default Ember.Route.extend({
beforeModel: function() {
return this.get('authStore').rawRequest({url: '/v1-auth/schemas', dataType: 'json'}).then((resp) => {
return this.get('authStore')._bulkAdd('schema', resp.body.data);
});
},
});