Skip to content

Firefly III: a personal finances manager

New route for attachment preview.

James Cole8101dc37b1eb
diff --git a/app/Http/routes.php b/app/Http/routes.php
index 5dcd842cd2..7350b6e8d2 100644
--- a/app/Http/routes.php
+++ b/app/Http/routes.php
@@ -203,6 +203,7 @@ Route::group(
Route::get('/attachment/edit/{attachment}', ['uses' => 'AttachmentController@edit', 'as' => 'attachments.edit']);
Route::get('/attachment/delete/{attachment}', ['uses' => 'AttachmentController@delete', 'as' => 'attachments.delete']);
Route::get('/attachment/show/{attachment}', ['uses' => 'AttachmentController@show', 'as' => 'attachments.show']);
+ Route::get('/attachment/preview/{attachment}', ['uses' => 'AttachmentController@preview', 'as' => 'attachments.preview']);
Route::get('/attachment/download/{attachment}', ['uses' => 'AttachmentController@download', 'as' => 'attachments.download']);