From 8c9e14ec0c4590bf0cc6a9ae9ccc73d7d4615591 Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Fri, 17 Dec 2021 21:07:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=E6=96=87=E7=AB=A0=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=A7=BB=E5=87=BA=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Endpoint/Api/routes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Endpoint/Api/routes.php b/app/Endpoint/Api/routes.php index 0b0df666..9dff35ba 100644 --- a/app/Endpoint/Api/routes.php +++ b/app/Endpoint/Api/routes.php @@ -58,6 +58,8 @@ Route::group([ Route::get('product/products', [ProductSkuController::class, 'index']); // 查看商品 Route::get('product/products/{product}', [ProductSkuController::class, 'show']); + //文章列表 + Route::get('articles', [ArticleController::class, 'index']); Route::middleware(['auth:api'])->group(function () { // 我的信息 @@ -102,7 +104,6 @@ Route::group([ Route::get('coupons', [UserCouponController::class, 'index']); //文章 - Route::get('articles', [ArticleController::class, 'index']); Route::get('articles/{article}', [ArticleController::class, 'show']); Route::post('articles/{article}/read', [ArticleController::class, 'read']); Route::post('articles/{article}/like', [ArticleController::class, 'like']);