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: app.controller.foo instead of 'foo' #942

Merged
merged 4 commits into from
May 20, 2017
Merged

Conversation

dead-horse
Copy link
Member

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

closes #920

@mention-bot
Copy link

@dead-horse, thanks for your PR! By analyzing the history of the files in this pull request, we identified @leoner, @huacnlee and @tomatoo to be potential reviewers.

@dead-horse
Copy link
Member Author

和业务方聊的时候他们也不太能理解直接传一个字符串,再加上中间有一堆的 middleware 也不能穿字符串,更加容易混乱。

@codecov
Copy link

codecov bot commented May 19, 2017

Codecov Report

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

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #942   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          28     28           
  Lines         669    669           
=====================================
  Hits          669    669

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 cfc76ec...43fd349. Read the comment docs.

Copy link
Member

@atian25 atian25 left a comment

Choose a reason for hiding this comment

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

quickstart 也改下?中英文

};

// app/router/admin.js
module.exports = app => {
app.get('/admin/user', 'admin.user');
app.get('/admin/log', 'admin.log');
app.get('/admin/user', app.controlleradmin.user);
Copy link
Member

Choose a reason for hiding this comment

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

少了个点

@dead-horse
Copy link
Member Author

quickstart 也改了

@atian25
Copy link
Member

atian25 commented May 19, 2017

+1

@popomore popomore merged commit 713e033 into master May 20, 2017
@popomore popomore deleted the docs-router-controller branch May 20, 2017 02:31
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.

在使用typescript开发时,router的方法无法进行严格的typing定义
4 participants