mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
14 lines
253 B
Text
14 lines
253 B
Text
|
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);
|
||
|
}
|
||
|
});
|