version('v1', ['namespace' => 'App\Api\V1\Controllers'], function ($api) { // $api->group(['middleware' => 'sign.token'], function($api) { //功能列表 $api->post('features/getCategoryList', 'FeaturesController@getCategoryList'); $api->post('features/getTagList', 'FeaturesController@getTagList'); $api->post('features/getMenuList', 'FeaturesController@getMenuList'); $api->post('features/getMenu', 'FeaturesController@getMenu'); $api->post('features/getRecommend', 'FeaturesController@getRecommend'); $api->post('features/getBannerRecommend', 'FeaturesController@getBannerRecommend'); $api->post('features/getRecommendTag', 'FeaturesController@getRecommendTag'); $api->post('features/selectIngredients', 'FeaturesController@selectIngredients'); $api->post('features/selectTag', 'FeaturesController@selectTag'); $api->post('features/selectAll', 'FeaturesController@selectAll'); $api->post('features/getHotSearch', 'FeaturesController@getHotSearch'); $api->post('features/feedBack', 'FeaturesController@feedBack'); //收藏 $api->post('features/addCollection', 'FeaturesController@addCollection'); //2.0菜谱 //早中晚专题 $api->post('features/earlyMiddleAndLateTheme', 'FeaturesController@earlyMiddleAndLateTheme'); //其他专题 $api->post('features/otherTheme', 'FeaturesController@otherTheme'); //最近50条菜谱 $api->post('features/theLastRecipes', 'FeaturesController@theLastRecipes'); //菜谱列表详情 $api->post('features/menuList', 'FeaturesController@menuList'); //菜谱详情 $api->post('features/menuDetail', 'FeaturesController@menuDetail'); //文章列表 $api->post('features/articleList', 'FeaturesController@articleList'); //文章详情 $api->post('features/articleDetail', 'FeaturesController@articleDetail'); //发现页面 $api->post('finds/getFinds', 'FindsController@getFinds'); });