<?php
 $router->group([ 'middleware' => [ \Module\Member\Middleware\ApiAuthMiddleware::class, ], ], function () use ($router) { $router->match(['get', 'post'], 'question', 'QuestionController@lists'); $router->match(['get', 'post'], 'question/latest', 'QuestionController@latest'); $router->match(['get', 'post'], 'question/search', 'QuestionController@search'); $router->match(['get', 'post'], 'question/get', 'QuestionController@get'); $router->match(['get', 'post'], 'question/answer', 'QuestionController@answer'); $router->match(['get', 'post'], 'question_tag/all', 'QuestionTagController@all'); $router->match(['get', 'post'], 'question_comment/list', 'QuestionCommentController@lists'); $router->match(['get', 'post'], 'question_comment/post', 'QuestionCommentController@post'); $router->match(['get', 'post'], 'question_comment/delete', 'QuestionCommentController@delete'); $router->match(['get', 'post'], 'question_favorite_member', 'QuestionFavoriteMemberController@paginate'); $router->match(['get', 'post'], 'question_favorite_member/submit', 'QuestionFavoriteMemberController@submit'); });