mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 19:51:24 +08:00
14 lines
253 B
JavaScript
14 lines
253 B
JavaScript
export default Ember.Route.extend({
|
|
queryParams: {
|
|
q: { replace: true }
|
|
},
|
|
|
|
model(params) {
|
|
return this.store.find('site-text', { q: params.q });
|
|
},
|
|
|
|
setupController(controller, model) {
|
|
controller.set('siteTexts', model);
|
|
}
|
|
});
|