blob: 6b03b389977d3d74f2895022756a8aa8e68b9d93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
"use strict";
const api = require("../api.js");
const uri = require("../util/uri.js");
const Post = require("./post.js");
class Info {
static get() {
return api.get(uri.formatApiLink("info")).then((response) => {
return Promise.resolve(
Object.assign({}, response, {
featuredPost: response.featuredPost
? Post.fromResponse(response.featuredPost)
: undefined,
})
);
});
}
}
module.exports = Info;
|