Browse Source

公司权限调整

kely 7 months ago
parent
commit
dff0c75e0f
1 changed files with 5 additions and 3 deletions
  1. 5 3
      routes/api.php

+ 5 - 3
routes/api.php

@@ -44,9 +44,11 @@ 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::apiResource("company", API\CompanyController::class)->only([
-        'index', 'show'
-    ]);
+    Route::get("company", [API\CompanyController::class, "index"]);
+    Route::get("company/{company_id}", [API\CompanyController::class, "show"]);
+//    Route::apiResource("company", API\CompanyController::class)->only([
+//        'index', 'show'
+//    ]);
     Route::get("action/{object_type}/history/{object_id}", [API\ActionController::class, "history"]);
 
     // Allow access only to admin role