egg-jc2sr
egg joi controller to swagger + router
jwt
// 在app.js中设置:
app.jwt = app.passport.authenticate('jwt', {session: false, successReturnToOrRedirect: null});
// 在方法中使用@Jwt修饰
egg joi controller to swagger + router
// 在app.js中设置:
app.jwt = app.passport.authenticate('jwt', {session: false, successReturnToOrRedirect: null});
// 在方法中使用@Jwt修饰
npm i egg-jc2sr
0
0.2.4
MIT
4.01 MB
63