<?php
 $router->group([ 'middleware' => [ \Module\Member\Middleware\ApiAuthMiddleware::class, ], ], function () use ($router) { $router->match(['get', 'post'], 'paper', 'PaperController@listPublic'); $router->match(['get', 'post'], 'paper/get', 'PaperController@get'); $router->match(['get', 'post'], 'paper/questions', 'PaperController@questions'); $router->match(['get', 'post'], 'paper/search', 'PaperController@search'); $router->match(['get', 'post'], 'paper_exam/start/{alias}', 'PaperExamController@start'); $router->match(['get', 'post'], 'paper_exam/save/{alias}', 'PaperExamController@save'); $router->match(['get', 'post'], 'paper_exam_member', 'PaperExamMemberController@paginate'); $router->match(['get', 'post'], 'paper_exam_member/get', 'PaperExamMemberController@get'); $router->match(['get', 'post'], 'paper_category', 'PaperCategoryController@all'); });