Switch file manager listing to use panel API endpoint

This commit is contained in:
Dane Everitt 2019-05-01 20:54:40 -07:00
parent e87c5f6657
commit c80c8564b8
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 156 additions and 8 deletions

View file

@ -42,6 +42,8 @@ Route::group(['prefix' => '/servers/{server}', 'middleware' => [AuthenticateServ
});
Route::group(['prefix' => '/files'], function () {
Route::get('/list', 'Servers\FileController@listDirectory')->name('api.client.servers.files.list');
Route::post('/download/{file}', 'Servers\FileController@download')
->where('file', '.*')
->name('api.client.servers.files.download');