Changeset 190db9f for routes


Ignore:
Timestamp:
11/01/21 11:18:15 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
master
Children:
d95fdd2
Parents:
1451c6f
Message:

edited user permissions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • routes/web.php

    r1451c6f r190db9f  
    8888        Route::get("/departments/{id}/edit", "Dashboard\DepartmentsController@editShow")->name("dashboard.departments.editShow");
    8989        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");
    9190     });
    9291
     
    102101        Route::post("/folders/store", "Dashboard\FoldersController@store")->name("dashboard.folders.store");
    103102        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");
    105103        Route::post("/folders/{id}/upload", "Dashboard\FoldersController@uploadFiles")->name("dashboard.folders.uploadFiles");
    106 
    107104    });
    108105
     
    114111    //Files manage
    115112Route::group(['middleware' => 'permission:manage_all_files'], function () {
    116     Route::patch("files/{id}/rename-file", "Dashboard\FilesController@renameFile")->name("dashboard.files.renameFile");
    117113    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");
    119114    });
    120115
     
    134129        Route::get('/departments/{id}/download-department', 'Dashboard\DepartmentsController@downloadDepartment')->name('dashboard.departments.downloadDepartment');
    135130    });
     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    });
    136138});
Note: See TracChangeset for help on using the changeset viewer.