yyy
This commit is contained in:
@@ -19,8 +19,8 @@ app.listen(config.port, () => {
|
||||
console.log(`
|
||||
爬虫运行在下面网址:
|
||||
|
||||
1️⃣ 公网IPV6: http://[${ipv6()}]:${config.port}
|
||||
2️⃣ 局域网IPV4: http://${ipv4()}:${config.port}
|
||||
1️⃣ 公网 IPV6: http://[${ipv6()}]:${config.port}
|
||||
2️⃣ 局域网 IPV4: http://${ipv4()}:${config.port}
|
||||
|
||||
`)
|
||||
})
|
||||
|
||||
@@ -48,7 +48,7 @@ router.get('/hot', async (req, res) => {
|
||||
})
|
||||
|
||||
|
||||
// 获取首页 默认的随机数据
|
||||
// 获取首页 默认的随机写真
|
||||
// http://192.168.31.101:3030/v1/api/home/list
|
||||
router.get('/list', async (req, res) => {
|
||||
let $ = await Util.get(`${Config.baseUrl}/?orderby=rand`)
|
||||
|
||||
@@ -4,7 +4,7 @@ import Config from '../config/config.js'
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
// 搜索页面的热门搜索接口
|
||||
// 搜索页面的 热门关键词 & 推荐
|
||||
// http://192.168.31.101:3030/v1/api/search/hot
|
||||
router.get('/hot', async (req, res) => {
|
||||
let $ = await Util.get(`${Config.baseUrl}/wp-admin/admin-ajax.php?action=search_box`)
|
||||
@@ -35,7 +35,7 @@ router.get('/hot', async (req, res) => {
|
||||
})
|
||||
|
||||
|
||||
// 搜索页面的热门搜索接口
|
||||
// 搜索接口
|
||||
// http://192.168.31.101:3030/v1/api/search?keyword=杨晨晨
|
||||
router.get('/', async (req, res) => {
|
||||
let { keyword, page } = req.query
|
||||
|
||||
Reference in New Issue
Block a user