This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user