Fixed image folder deletion. Fixes #22.

This commit is contained in:
Dan Brown
2015-08-23 14:05:09 +01:00
parent 958ed627dd
commit 40b629d35d
2 changed files with 23 additions and 6 deletions

View File

@ -70,6 +70,7 @@ Route::group(['middleware' => 'auth'], function() {
Route::get('/images/all', 'ImageController@getAll');
Route::put('/images/update/{imageId}', 'ImageController@update');
Route::delete('/images/{imageId}', 'ImageController@destroy');
Route::get('/images/{imageId}/delete', 'ImageController@destroy');
Route::get('/images/all/{page}', 'ImageController@getAll');
Route::get('/images/{any}', 'ImageController@getImage')->where('any', '.*');