Au cas ou

This commit is contained in:
Lagacé Mathieu
2020-03-05 08:59:10 -05:00
parent baef9a1df0
commit 8189bbce9a
1843 changed files with 143778 additions and 90 deletions

View File

@@ -64,6 +64,13 @@ Route::middleware('auth:api')->group(function () {
/** Job Route */
Route::post('/config/job/delete','JobController@destroy')->middleware('perm:config_edit');
/** File Exlorer Route */
Route::get('/drive/folders/{folder?}','GoogleDriveController@list');
Route::get('/drive/path/{folder}','GoogleDriveController@getPath');
Route::get('/drive/patharray','GoogleDriveController@getPathArray');
Route::get('/drive/files/{dir}/{file}','GoogleDriveController@showMetadata');
Route::get('/drive/checkfilestructure','GoogleDriveController@checkFileSystem');
Route::get('/user/perm/{id}', function($id) {
$user = \App\User::find($id);
return $user->getPerm("schedule_edit");