mirror of
https://github.com/discourse/discourse.git
synced 2024-12-10 03:03:49 +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));
|
|
}
|
|
}
|