gitbook-plugin-filter
v1.0.1
Published
gitbook拦截器插件,执行逻辑自定义代码
Downloads
3
Readme
Code plugin for GitBook
gitbook登陆拦截插件
How can I use this plugin?
book.json中添加插件
"plugins" : [ "login" ],
"pluginsConfig": {
"login": {
"apiHost": "https://api-test.com", // 请求后台api的域
"checkLoginApi": "/user", // 请求判断是否登陆的url
"loginWebUrl": "https://www.test.com/login" // 登陆的页面路径
}
}
login api response
{
"body": true // body为true登陆成功,false未登陆
}
github location
https://github.com/Hehew/gitbook-plugin-login