koajs / joi-router

Configurable, input and output validated routing for koa
MIT License
450 stars 96 forks source link

Support pre handlers #66

Closed swarthy closed 5 years ago

swarthy commented 6 years ago

Sometimes, before body parsing and validation you need to check preconditions (e.g. jwt authentication).

codecov[bot] commented 6 years ago

Codecov Report

Merging #66 into master will increase coverage by 0.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #66      +/-   ##
=========================================
+ Coverage   99.59%   99.6%   +0.01%     
=========================================
  Files           3       3              
  Lines         248     256       +8     
  Branches       50      53       +3     
=========================================
+ Hits          247     255       +8     
  Misses          1       1
Impacted Files Coverage Δ
joi-router.js 99.43% <100%> (+0.02%) :arrow_up:

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 ee6904b...a8a27c8. Read the comment docs.

aheckmann commented 5 years ago

thanks!