-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support lib require in route file #178
Conversation
Codecov Report
@@ Coverage Diff @@
## master #178 +/- ##
==========================================
+ Coverage 95.97% 95.98% +0.01%
==========================================
Files 50 50
Lines 1688 1694 +6
==========================================
+ Hits 1620 1626 +6
Misses 68 68
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Documents needed
- I prefer
use
instead ofmiddleware
const bodyParserRelative = require('./node_modules/koa-bodyparser'); //relative path | ||
const bodyParser = require('koa-bodyparser'); | ||
|
||
post('/test/post').to.handle(bodyParser()).handle((ctx) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
middleware
or handle
?
doc here: svrxjs/svrx-docs#41 |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce?
What is the related issue?
#157
Does this PR introduce a breaking change?
Other information: