增加接口,增加index
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
编码猿
2024-12-12 11:10:07 +08:00
parent 443d248cb4
commit 4dd0c5d928
10 changed files with 92 additions and 20 deletions

View File

@@ -5,7 +5,7 @@ import Config from '../config/config.js'
const router = express.Router();
// 获取首页banner图
// http://192.168.31.101:3030/v1/api/home/banner
// http://192.168.31.101:9940/v1/api/home/banner
router.get('/banner', async (req, res) => {
let $ = await Util.get(`${Config.baseUrl}/?orderby=rand`)
let result = []
@@ -25,7 +25,7 @@ router.get('/banner', async (req, res) => {
})
// 获取热门推荐的写真
// http://192.168.31.101:3030/v1/api/home/hot
// http://192.168.31.101:9940/v1/api/home/hot
router.get('/hot', async (req, res) => {
let $ = await Util.get(`${Config.baseUrl}/?orderby=rand`)
let result = []
@@ -49,7 +49,7 @@ router.get('/hot', async (req, res) => {
// 获取首页 默认的随机写真
// http://192.168.31.101:3030/v1/api/home/list
// http://192.168.31.101:9940/v1/api/home/list
router.get('/list', async (req, res) => {
let $ = await Util.get(`${Config.baseUrl}/?orderby=rand`)
let result = []