Skip to content

Commit

Permalink
update api enpoint for /manifest/self
Browse files Browse the repository at this point in the history
  • Loading branch information
yusefnapora committed Jan 13, 2017
1 parent 4c4e534 commit e013fd0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
17 changes: 17 additions & 0 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/client/api/RestClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ class RestClient {
.then(r => r.json())
}

getNodeManifest (): Promise<string> {
return this.getRequest('manifest/node')
getSelfManifest (): Promise<string> {
return this.getRequest('manifest/self')
.then(trimTextResponse)
}

Expand Down
2 changes: 1 addition & 1 deletion src/client/cli/commands/manifest/self.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
`suitable for signing by mcid to produce a manifest.\n`,
handler: subcommand((opts: {client: RestClient}) => {
const {client} = opts
return client.getNodeManifest()
return client.getSelfManifest()
.then(m => println(m))
})
}

0 comments on commit e013fd0

Please sign in to comment.