mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 21:58:34 +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);
|
|
}
|
|
});
|