mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-08-20 07:34:06 -05:00
Renamed appID to communityID in communities/:id/posts to better match usage
This commit is contained in:
@@ -74,11 +74,11 @@ router.get('/new', async function (_request: express.Request, response: express.
|
||||
response.send(newCommunities);
|
||||
});
|
||||
|
||||
router.get('/:appID/posts', async function (request: express.Request, response: express.Response): Promise<void> {
|
||||
router.get('/:communityID/posts', async function (request: express.Request, response: express.Response): Promise<void> {
|
||||
response.type('application/xml');
|
||||
|
||||
let community: HydratedCommunityDocument | null = await Community.findOne({
|
||||
community_id: request.params.appID
|
||||
community_id: request.params.communityID
|
||||
});
|
||||
|
||||
if (!community) {
|
||||
|
||||
Reference in New Issue
Block a user