From 9502010248dcb8e0b3dfbc0da41550d93b89182d Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 18 Jul 2015 23:06:51 +0200 Subject: [PATCH] Some new routes. --- app/Http/routes.php | 11 ++++++++++- resources/twig/transactions/show.twig | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/Http/routes.php b/app/Http/routes.php index c638e56850..d8c4af2f4f 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -191,10 +191,19 @@ Route::group( Route::post('/accounts/update/{account}', ['uses' => 'AccountController@update', 'as' => 'accounts.update']); Route::post('/accounts/destroy/{account}', ['uses' => 'AccountController@destroy', 'as' => 'accounts.destroy']); + + /** * Attachment Controller */ - Route::get('/attachment/{attachment}/download', ['uses' => 'AttachmentController@download', 'as' => 'attachment.download']); + + Route::post('/attachment/update/{attachment}', ['uses' => 'AttachmentController@update', 'as' => 'attachment.update']); + Route::post('/attachment/destroy/{attachment}', ['uses' => 'AttachmentController@destroy', 'as' => 'attachment.destroy']); + + Route::get('/attachment/edit/{attachment}', ['uses' => 'AttachmentController@edit', 'as' => 'attachment.edit']); + Route::get('/attachment/delete/{attachment}', ['uses' => 'AttachmentController@delete', 'as' => 'attachment.delete']); + Route::get('/attachment/show/{attachment}', ['uses' => 'AttachmentController@show', 'as' => 'attachment.show']); + Route::get('/attachment/download/{attachment}', ['uses' => 'AttachmentController@download', 'as' => 'attachment.download']); /** diff --git a/resources/twig/transactions/show.twig b/resources/twig/transactions/show.twig index 5953bc43bd..420e96e447 100644 --- a/resources/twig/transactions/show.twig +++ b/resources/twig/transactions/show.twig @@ -87,8 +87,8 @@
- - + +