<?php
 $router->group([ 'middleware' => [ \Module\Member\Middleware\WebAuthMiddleware::class, ], ], function () use ($router) { $router->match(['get', 'post'], 'question', 'QuestionController@index'); $router->match(['get', 'post'], 'question/list/{tags?}', 'QuestionController@lists'); $router->match(['get', 'post'], 'question/view/{alias}', 'QuestionController@views')->where(['alias' => '[a-z0-9]+']); $router->match(['get', 'post'], 'question/answer/{alias}', 'QuestionController@answer')->where(['alias' => '[a-z0-9]+']); $router->match(['get', 'post'], 'question/search', 'QuestionController@search'); $router->match(['get', 'post'], 'question_tags', 'QuestionController@tags'); $router->match(['get', 'post'], 'question_comment/list/{alias}', 'QuestionCommentController@lists')->where(['alias' => '[a-z0-9]+']); $router->match(['get', 'post'], 'question_comment/post/{alias}', 'QuestionCommentController@post')->where(['alias' => '[a-z0-9]+']); $router->match(['get', 'post'], 'question_comment/delete', 'QuestionCommentController@delete'); $router->match(['get', 'post'], 'question_favorite_member', 'QuestionFavoriteMemberController@index'); $router->match(['get', 'post'], 'question_favorite_member/submit', 'QuestionFavoriteMemberController@submit'); }); 