2016-12-15 20:52:39 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
# User Management
|
2016-12-19 11:04:28 -08:00
|
|
|
Route::group([ 'prefix' => 'users', 'middleware' => ['web','auth']], function () {
|
2016-12-15 20:52:39 -08:00
|
|
|
|
2016-12-19 11:04:28 -08:00
|
|
|
Route::get('ldap', ['as' => 'ldap/user', 'uses' => 'UsersController@getLDAP' ]);
|
2016-12-15 20:52:39 -08:00
|
|
|
Route::post('ldap', 'UsersController@postLDAP');
|
2016-12-19 11:04:28 -08:00
|
|
|
Route::get('import', [ 'as' => 'import/user', 'uses' => 'UsersController@getImport' ]);
|
|
|
|
Route::post('import', [ 'uses' => 'UsersController@postImport' ]);
|
2016-12-22 15:53:34 -08:00
|
|
|
Route::get('export', [ 'as' => 'users.export', 'uses' => 'UsersController@getExportUserCsv' ]);
|
2016-12-19 11:04:28 -08:00
|
|
|
Route::get('{userId}/clone', [ 'as' => 'clone/user', 'uses' => 'UsersController@getClone' ]);
|
|
|
|
Route::post('{userId}/clone', [ 'uses' => 'UsersController@postCreate' ]);
|
|
|
|
Route::get('{userId}/restore', [ 'as' => 'restore/user', 'uses' => 'UsersController@getRestore' ]);
|
|
|
|
Route::get('{userId}/unsuspend', [ 'as' => 'unsuspend/user', 'uses' => 'UsersController@getUnsuspend' ]);
|
2017-03-03 18:41:13 -08:00
|
|
|
Route::post('{userId}/upload', [ 'as' => 'upload/user', 'uses' => 'UsersController@postUpload' ]);
|
2016-12-15 20:52:39 -08:00
|
|
|
Route::get(
|
|
|
|
'{userId}/deletefile/{fileId}',
|
|
|
|
[ 'as' => 'delete/userfile', 'uses' => 'UsersController@getDeleteFile' ]
|
|
|
|
);
|
|
|
|
Route::get(
|
|
|
|
'{userId}/showfile/{fileId}',
|
|
|
|
[ 'as' => 'show/userfile', 'uses' => 'UsersController@displayFile' ]
|
|
|
|
);
|
|
|
|
|
|
|
|
Route::post(
|
|
|
|
'bulkedit',
|
|
|
|
[
|
|
|
|
'as' => 'users/bulkedit',
|
|
|
|
'uses' => 'UsersController@postBulkEdit',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
Route::post(
|
|
|
|
'bulksave',
|
|
|
|
[
|
|
|
|
'as' => 'users/bulksave',
|
|
|
|
'uses' => 'UsersController@postBulkSave',
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::resource('users', 'UsersController', [
|
|
|
|
'parameters' => ['user' => 'user_id']
|
|
|
|
]);
|