-
Notifications
You must be signed in to change notification settings - Fork 221
/
config.example.js
64 lines (58 loc) · 2.29 KB
/
config.example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// api host,末尾不要带斜杠。后端程序是BookStack (https://github.com/truthhun/BookStack)
// let host = 'http://localhost:8181/bookchat'
// 默认分享的内容
let shareContent = 'BookChat,程序员IT互联网开源编程书籍免费阅读'
let shareLink = 'https://www.bookstack.cn/read/help/app.md'
// 是否是调试模式。如果是生产环境,请设置为false
const debug = true
// 横幅广告id,如果申请了腾讯小程序的广告,则创建一个横幅广告,把广告的AdUnitId粘贴进来即可,不投放广告,则把该值设置为空
const bannerAdUnitId = ''
// 程序信息,置空则不显示
const info = {
about: 'help/about', // "关于我们"的文档标识
version: 'v1.7.0',
copyright: 'BookStack.CN',
license: 'Apache 2.0',
author: 'TruthHun',
}
const api = {
banners: `${host}/api/v1/banners`,
register: `${host}/api/v1/register`,
login: `${host}/api/v1/login`,
loginByWechat: `${host}/api/v1/login-by-wechat`,
loginBindWechat: `${host}/api/v1/login-bind-wechat`,
loginedBindWechat: `${host}/api/v1/login-bind-wechat`,
logout: `${host}/api/v1/logout`,
categories: `${host}/api/v1/book/categories`,
bookLists: `${host}/api/v1/book/lists`,
bookListsByCids: `${host}/api/v1/book/lists-by-cids`,
bookInfo: `${host}/api/v1/book/info`,
historyReadBook: `${host}/api/v1/book/history`,
bookMenu: `${host}/api/v1/book/menu`,
bookDownload: `${host}/api/v1/book/download`,
searchBook: `${host}/api/v1/search/book`,
searchDoc: `${host}/api/v1/search/doc`,
bookmark: `${host}/api/v1/book/bookmark`,
read: `${host}/api/v1/book/read`,
userInfo: `${host}/api/v1/user/info`,
userMoreInfo: `${host}/api/v1/user/more-info`,
userRelease: `${host}/api/v1/user/release`,
userFans: `${host}/api/v1/user/fans`,
userFollow: `${host}/api/v1/user/follow`,
userSign: `${host}/api/v1/user/sign`,
bookshelf: `${host}/api/v1/user/bookshelf`,
bookStar: `${host}/api/v1/book/star`,
comment: `${host}/api/v1/book/comment`,
bookRelated: `${host}/api/v1/book/related`,
changeAvatar: `${host}/api/v1/user/change-avatar`,
changePassword: `${host}/api/v1/user/change-password`,
lastestVersion: `${host}/api/v1/version`,
rank: `${host}/api/v1/rank`,
}
module.exports = {
api,
debug,
info,
shareContent,
shareLink,
}