add 'inline' route to allow embedding uploads
This change adds an 'inline' route to uploads which sets the 'Content-Disposition' HTTP header to 'inline'. This allows modules to embed and display uploads in an HTML 'embed' element.
This commit is contained in:
@ -10,6 +10,7 @@ use Illuminate\Support\Facades\Route;
|
||||
*/
|
||||
|
||||
Route::group(['as' => 'uploads.', 'prefix' => 'uploads'], function () {
|
||||
Route::get('{id}/inline', 'Common\Uploads@inline')->name('inline');
|
||||
Route::delete('{id}', 'Common\Uploads@destroy')->name('destroy');
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user