|
@@ -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
|