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

docs(router): add definition of ctx #2136

Merged
merged 2 commits into from
Feb 28, 2018
Merged

Conversation

HuangCongQing
Copy link
Contributor

@HuangCongQing HuangCongQing commented Feb 26, 2018

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@atian25
Copy link
Member

atian25 commented Feb 26, 2018

please also change the en version, just push to this PR, don't reopen another.

@codecov-io
Copy link

codecov-io commented Feb 26, 2018

Codecov Report

Merging #2136 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2136   +/-   ##
=======================================
  Coverage   99.59%   99.59%           
=======================================
  Files          29       29           
  Lines         743      743           
=======================================
  Hits          740      740           
  Misses          3        3

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9472b58...85776b3. Read the comment docs.

@@ -24,6 +24,7 @@ module.exports = app => {
// app/controller/user.js
class UserController extends Controller {
async info() {
const { ctx } = this;
this.ctx.body = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ctx.body change this too.

@atian25 atian25 merged commit e0282b9 into eggjs:master Feb 28, 2018
@atian25
Copy link
Member

atian25 commented Feb 28, 2018

I'll handle this. https://github.com/eggjs/egg/pull/2144/files

popomore pushed a commit that referenced this pull request Feb 28, 2018
docs(router): add definition of ctx (#2136)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants