mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 11:03:48 +08:00
11 lines
353 B
JavaScript
11 lines
353 B
JavaScript
import EmberObject from "@ember/object";
|
|
import { ajax } from "discourse/lib/ajax";
|
|
import DiscourseRoute from "discourse/routes/discourse";
|
|
|
|
export default class AdminEmojisRoute extends DiscourseRoute {
|
|
async model() {
|
|
const emojis = await ajax("/admin/customize/emojis.json");
|
|
return emojis.map((emoji) => EmberObject.create(emoji));
|
|
}
|
|
}
|