Skip to content

Commit

Permalink
Merge pull request #24 from isomerpages/update-resources
Browse files Browse the repository at this point in the history
Return resourceRoomName in GET /resources API
  • Loading branch information
kwajiehao authored Nov 18, 2019
2 parents abdbd9a + 178232f commit 92361cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ components:
type: array
items:
type: string
resourceRoomName:
type: string
MenuListResponse:
properties:
menus:
Expand Down
2 changes: 1 addition & 1 deletion routes/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ router.get('/:siteName/resources', async function(req, res, next) {
const IsomerResource = new Resource(access_token, siteName)
const resources = await IsomerResource.list(resourceRoomName)

res.status(200).json({ resources })
res.status(200).json({ resourceRoomName, resources })
} catch (err) {
console.log(err)
}
Expand Down

0 comments on commit 92361cd

Please sign in to comment.