浏览代码

公司权限调整

kely 7 月之前
父节点
当前提交
a64b4853dc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      routes/api.php

+ 1 - 1
routes/api.php

@@ -44,7 +44,7 @@ Route::middleware(['auth:sanctum','account.limit'])->group(function () {
     Route::get("notification", [API\NotificationController::class, "index"]);
     Route::get("notification/unread", [API\NotificationController::class, "unread"]);
     Route::post("notification/mark-as-read", [API\NotificationController::class, "markAsRead"]);
-    Route::get("company", [API\CompanyController::class, "index"]);
+    Route::get("company", [API\CompanyController::class, "index"])->name("company.index");
     Route::get("company/{company_id}", [API\CompanyController::class, "show"]);
 //    Route::apiResource("company", API\CompanyController::class)->only([
 //        'index', 'show'