shibajs-saluki
v1.0.0
Published
## Install
Downloads
2
Readme
Shibajs-saluki
Install
npm install shibajs-saluki -S
usage
// Add in your config/plugin.js
exports.saluki = {
package:'shibajs-saluki',
options:{
// saluki options
}
}
// then use it in your controller
class User {
@Route('/user',RouteMethods.GET)
async getUser(ctx){
const result = await ctx.saluki.UserService.get({
id:'1'
})
ctx.result(result)
}
}