This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/models/live-post-counts.es6
2019-11-08 14:13:35 -05:00

15 lines
319 B
JavaScript

import { ajax } from "discourse/lib/ajax";
import EmberObject from "@ember/object";
const LivePostCounts = EmberObject.extend({});
LivePostCounts.reopenClass({
find() {
return ajax("/about/live_post_counts.json").then(result =>
LivePostCounts.create(result)
);
}
});
export default LivePostCounts;