mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-02 11:59:17 -05: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);
|
||
|
}
|
||
|
});
|