Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: implement http.Handler on *API #771

Merged
merged 2 commits into from Mar 16, 2017
Merged

core: implement http.Handler on *API #771

merged 2 commits into from Mar 16, 2017

Conversation

jbowens
Copy link
Contributor

@jbowens jbowens commented Mar 16, 2017

Rework the construction of the API's http.Handler to avoid a second
function call (to API.Handler). Instead, construct the http.Handler
during Run. Also:

  • move the MockHSMHandler into a RunOption.
  • move the blockchain ID middleware into the core package

Tested locally through dashboard, including transacting on testnet, resetting, reconfiguring and creating mock HSM keys.

@jbowens jbowens added the PTAL label Mar 16, 2017
@kr
Copy link
Contributor

kr commented Mar 16, 2017

LGTM

jbowens and others added 2 commits March 16, 2017 03:53
Rework the construction of the API's http.Handler to avoid a second
function call (to `API.Handler`). Instead, construct the http.Handler
during Run. Also:
  * move the MockHSMHandler into a RunOption.
  * move the blockchain ID middleware into the core package
@iampogo iampogo merged commit 374d084 into main Mar 16, 2017
@iampogo iampogo deleted the core-handler branch March 16, 2017 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants