Commit 5e5071c0 authored by King Alex's avatar King Alex

Ajout de routes admin

parent 5a407e7f
......@@ -33,6 +33,13 @@ Route::get('/refresh', 'HomeController@refresh');
* ADMIN
*/
Route::get('admin', 'AdminController@admin');
Route::get('admin/recipes', 'AdminController@recipeList');
Route::get('admin/ingredients', 'AdminController@recipeIngredients');
Route::get('admin/images', 'AdminController@recipeImages');
// TODO remove routes
Route::post('admin/images/remove/{id}','AdminController@imageRemove');
Route::post('admin/recipes/remove/{id}','AdminController@recipeRemove');
Route::post('admin/ingredients/remove/{id}','AdminController@ingredientRemove');
/**
* PROJECT Create|Read|Update|Delete
......@@ -53,7 +60,7 @@ Route::get('recipe/create', 'RecipeController@create');
Route::post('recipe/create', 'RecipeController@doCreate');
Route::get('recipe/list', 'RecipeController@list');
Route::post('recipe/search',['uses' => 'RecipeController@search','as' => 'search']);
Route::get('recipe/show/{id}','RecipeController@get');
/**
* Confide routes
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment