mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
13 lines
281 B
JavaScript
13 lines
281 B
JavaScript
import { ajax } from "discourse/lib/ajax";
|
|
const LivePostCounts = Discourse.Model.extend({});
|
|
|
|
LivePostCounts.reopenClass({
|
|
find() {
|
|
return ajax("/about/live_post_counts.json").then(result =>
|
|
LivePostCounts.create(result)
|
|
);
|
|
}
|
|
});
|
|
|
|
export default LivePostCounts;
|