mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 17:45:22 +08:00
18 lines
337 B
JavaScript
18 lines
337 B
JavaScript
export default Ember.Route.extend({
|
|
queryParams: {
|
|
q: { replace: true },
|
|
overridden: { replace: true }
|
|
},
|
|
|
|
model(params) {
|
|
return this.store.find(
|
|
"site-text",
|
|
Ember.getProperties(params, "q", "overridden")
|
|
);
|
|
},
|
|
|
|
setupController(controller, model) {
|
|
controller.set("siteTexts", model);
|
|
}
|
|
});
|