Commit 4ef31750 authored by King Alex's avatar King Alex

Ajout API

parent a7aed38e
......@@ -24,6 +24,8 @@ Route::post('bienvenu','HomeController@bienvenue');
Route::post('bienvenue','HomeController@bienvenue');
Route::get('profile/{id}','HomeController@profile');
/**
* WEBMASTER
*/
......@@ -61,6 +63,17 @@ 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');
/**
* API
*/
//Route::get('api/add', 'ApiController@create');
//Route::get('api/create', 'ApiController@create');
//Route::post('api/create', 'ApiController@doCreate');
Route::get('api/list', 'ApiController@list');
//Route::post('api/search',['uses' => 'ApiController@search','as' => 'search']);
Route::get('api/show/{id}','ApiController@show');
/**
* 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