mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-08-28 03:24:22 -05:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -10,9 +10,12 @@ router.get('/0/posts', function (req, res) {
|
||||
/* Parse out parameters from URL and headers */
|
||||
const paramPack = processHeaders.data.decodeParamPack(req.headers["x-nintendo-parampack"]);
|
||||
//"[0:1]=1407375153523200"
|
||||
console.log(paramPack.title_id);
|
||||
let community = await database.getCommunityByTitleID(paramPack.title_id);
|
||||
console.log(community.title_id);
|
||||
/* Go to the database for posts. */
|
||||
let posts = await database.getPostsByCommunity(community, parseInt(req.query.limit));
|
||||
console.log(posts);
|
||||
|
||||
/* Build formatted response and send it off. */
|
||||
let response = await comPostGen.PostsResponse(posts, community);
|
||||
|
||||
Reference in New Issue
Block a user