This commit is contained in:
编码猿
2024-11-22 23:09:21 +08:00
parent 4bc03fc814
commit 12eca48220
3 changed files with 5 additions and 5 deletions

View File

@@ -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}
`)
})

View File

@@ -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`)

View File

@@ -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