Initial attempt trying to get file downloading to work

This commit is contained in:
Dane Everitt 2019-03-16 17:10:04 -07:00
parent 4e669771ca
commit 8955b5a660
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 153 additions and 3 deletions

View file

@ -40,4 +40,10 @@ Route::group(['prefix' => '/servers/{server}', 'middleware' => [AuthenticateServ
Route::post('/', 'Servers\DatabaseController@store');
Route::delete('/{database}', 'Servers\DatabaseController@delete')->name('api.client.servers.databases.delete');
});
Route::group(['prefix' => '/files'], function () {
Route::post('/download/{file}', 'Servers\FileController@download')
->where('file', '.*')
->name('api.client.servers.files.download');
});
});