- Timestamp:
- 11/01/21 11:18:15 (3 years ago)
- Branches:
- master
- Children:
- d95fdd2
- Parents:
- 1451c6f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
routes/web.php
r1451c6f r190db9f 88 88 Route::get("/departments/{id}/edit", "Dashboard\DepartmentsController@editShow")->name("dashboard.departments.editShow"); 89 89 Route::patch("/departments/{id}/edit", "Dashboard\DepartmentsController@edit")->name("dashboard.departments.edit"); 90 Route::delete("/departments/{id}/destroy", "Dashboard\DepartmentsController@destroy")->name("dashboard.departments.destroy");91 90 }); 92 91 … … 102 101 Route::post("/folders/store", "Dashboard\FoldersController@store")->name("dashboard.folders.store"); 103 102 Route::get("/folders/{id}/edit", "Dashboard\FoldersController@editShow")->name("dashboard.folders.editShow"); 104 Route::delete("/folders/{id}/destroy", "Dashboard\FoldersController@destroy")->name("dashboard.folders.destroy");105 103 Route::post("/folders/{id}/upload", "Dashboard\FoldersController@uploadFiles")->name("dashboard.folders.uploadFiles"); 106 107 104 }); 108 105 … … 114 111 //Files manage 115 112 Route::group(['middleware' => 'permission:manage_all_files'], function () { 116 Route::patch("files/{id}/rename-file", "Dashboard\FilesController@renameFile")->name("dashboard.files.renameFile");117 113 Route::post("/files/store", "Dashboard\FilesController@store")->name("dashboard.files.store"); 118 Route::delete("files/{id}/delete-file", "Dashboard\FilesController@deleteFile")->name("dashboard.files.deleteFile");119 114 }); 120 115 … … 134 129 Route::get('/departments/{id}/download-department', 'Dashboard\DepartmentsController@downloadDepartment')->name('dashboard.departments.downloadDepartment'); 135 130 }); 131 132 //Delete data 133 Route::group(['middleware' => 'permission:delete_data'], function() { 134 Route::delete("files/{id}/delete-file", "Dashboard\FilesController@deleteFile")->name("dashboard.files.deleteFile"); 135 Route::delete("/folders/{id}/destroy", "Dashboard\FoldersController@destroy")->name("dashboard.folders.destroy"); 136 Route::delete("/departments/{id}/destroy", "Dashboard\DepartmentsController@destroy")->name("dashboard.departments.destroy"); 137 }); 136 138 });
Note:
See TracChangeset
for help on using the changeset viewer.