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.js
2020-03-25 12:30:20 -04: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;