Added image name editing & deleting

This commit is contained in:
Dan Brown
2015-08-16 00:18:22 +01:00
parent b0808a1c24
commit e5a372ffbd
10 changed files with 201 additions and 64 deletions

View File

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