- Timestamp:
- 10/21/21 23:45:59 (3 years ago)
- Branches:
- develop, master
- Children:
- 4b7e2d3
- Parents:
- 6b95845
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
routes/web.php
r6b95845 rc6b84df 55 55 Route::patch("/settings/password", "Dashboard\SettingsController@updatePassword")->name("dashboard.settings.password"); 56 56 Route::patch("/settings/email", "Dashboard\SettingsController@updateEmail")->name("dashboard.settings.email"); 57 Route::patch("/settings/file-types", "Dashboard\SettingsController@fileTypes")->name("dashboard.settings.file-types"); 57 58 58 59 … … 65 66 }); 66 67 67 Route::group(['middleware' => 'permission:create_user'], function () {68 Route::group(['middleware' => 'permission:create_user'], function () { 68 69 Route::get("/users/create", "Dashboard\UsersController@create")->name("dashboard.users.create"); 69 70 Route::post("/users/store", "Dashboard\UsersController@store")->name("dashboard.users.store"); … … 71 72 Route::patch("/users/{id}/edit", "Dashboard\UsersController@edit")->name("dashboard.users.edit"); 72 73 Route::patch("/users/{id}/editUserData", "Dashboard\UsersController@editUserData")->name("dashboard.users.editUserData"); 73 }); 74 Route::get('users/export', 'Dashboard\ExportExcelController@ExportUsers')->name("dashboard.users.export"); 75 }); 74 76 75 77 // Departments … … 81 83 Route::patch("/departments/{id}/edit", "Dashboard\DepartmentsController@edit")->name("dashboard.departments.edit"); 82 84 Route::delete("/departments/{id}/destroy", "Dashboard\DepartmentsController@destroy")->name("dashboard.departments.destroy"); 85 Route::get('/departments/download-all','Dashboard\DepartmentsController@downloadAll')->name('dashboard.departments.downloadAll'); 86 Route::get('/departments/{id}/download-department','Dashboard\DepartmentsController@downloadDepartment')->name('dashboard.departments.downloadDepartment'); 83 87 }); 84 88 85 // Documents 86 Route::get("/documents", "Dashboard\DocumentsController@index")->name("dashboard.documents.index"); 87 Route::get("/documents/create", "Dashboard\DocumentsController@create")->name("dashboard.documents.create"); 88 Route::post("/documents/store", "Dashboard\DocumentsController@store")->name("dashboard.documents.store"); 89 Route::get("/documents/{id}/edit", "Dashboard\DocumentsController@editShow")->name("dashboard.documents.editShow"); 90 Route::patch("/documents/{id}/edit", "Dashboard\DocumentsController@edit")->name("dashboard.documents.edit"); 91 Route::patch("/documents/{id}/block", "Dashboard\DocumentsController@block")->name("dashboard.documents.block"); 92 Route::patch("/documents/{id}/unblock", "Dashboard\DocumentsController@unblock")->name("dashboard.documents.unblock"); 93 Route::patch("/documents/{id}/confirm", "Dashboard\DocumentsController@confirm")->name("dashboard.documents.confirm"); 94 Route::delete("/documents/{id}/destroy", "Dashboard\DocumentsController@destroy")->name("dashboard.documents.destroy"); 95 Route::patch('/documents/toggle-important/{id}', "Dashboard\DocumentsController@toggleImportant")->name("dashboard.documents.toggleImportant"); 96 Route::delete("documents/{id}/deleteFile", "Dashboard\DocumentsController@deleteFile")->name("dashboard.documents.deleteFile"); 97 Route::get("documents/{id}/downloadFile", "Dashboard\DocumentsController@downloadFile")->name("dashboard.documents.downloadFile"); 98 Route::patch("documents/{id}/renameFile", "Dashboard\DocumentsController@renameFile")->name("dashboard.documents.renameFile"); 89 // Folders 90 Route::get("/folders", "Dashboard\FoldersController@index")->name("dashboard.folders.index"); 91 Route::get("/folders/create", "Dashboard\FoldersController@create")->name("dashboard.folders.create"); 92 Route::post("/folders/store", "Dashboard\FoldersController@store")->name("dashboard.folders.store"); 93 Route::get("/folders/{id}/edit", "Dashboard\FoldersController@editShow")->name("dashboard.folders.editShow"); 94 Route::patch("/folders/{id}/edit", "Dashboard\FoldersController@edit")->name("dashboard.folders.edit"); 95 Route::patch("/folders/{id}/block", "Dashboard\FoldersController@block")->name("dashboard.folders.block"); 96 Route::patch("/folders/{id}/unblock", "Dashboard\FoldersController@unblock")->name("dashboard.folders.unblock"); 97 Route::patch("/folders/{id}/confirm", "Dashboard\FoldersController@confirm")->name("dashboard.folders.confirm"); 98 Route::delete("/folders/{id}/destroy", "Dashboard\FoldersController@destroy")->name("dashboard.folders.destroy"); 99 Route::patch('/folders/toggle-important/{id}', "Dashboard\FoldersController@toggleImportant")->name("dashboard.folders.toggleImportant"); 100 Route::get('/folders/{id}/download-folder','Dashboard\FoldersController@downloadFolder')->name('dashboard.folders.downloadFolder'); 101 Route::get('/folders/{id}/files','Dashboard\FoldersController@files')->name('dashboard.folders.files'); 102 Route::get('folders/export', 'Dashboard\ExportExcelController@ExportFolders')->name("dashboard.folders.export"); 103 104 // Files 105 Route::get("files", "Dashboard\FilesController@index")->name("dashboard.files.index"); 106 Route::get("files/{id}/download-file", "Dashboard\FilesController@downloadFile")->name("dashboard.files.downloadFile"); 107 Route::patch("files/{id}/rename-file", "Dashboard\FilesController@renameFile")->name("dashboard.files.renameFile"); 108 Route::post("/files/store", "Dashboard\FilesController@store")->name("dashboard.files.store"); 109 Route::delete("files/{id}/delete-file", "Dashboard\FilesController@deleteFile")->name("dashboard.files.deleteFile"); 110 Route::get('files/export', 'Dashboard\ExportExcelController@ExportFiles')->name("dashboard.files.export"); 111 112 // Notifications 113 Route::get("/notifications", "Dashboard\NotificationsController@notifications")->name("dashboard.notifications.index"); 114 Route::post("/get-notifications", "Dashboard\NotificationsController@showNotifications")->name("dashboard.notifications.store"); 115 116 99 117 });
Note:
See TracChangeset
for help on using the changeset viewer.