<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ $router->group(array('middleware' => array(\Module\Member\Middleware\WebAuthMiddleware::class)), function () use($router) { $router->match(array('get', 'post'), 'res', 'IndexController@index'); $router->match(array('get', 'post'), 'res/list', 'ResController@lists'); $router->match(array('get', 'post'), 'res/list-{id}', 'ResController@lists'); $router->match(array('get', 'post'), 'res/search', 'ResController@search'); $router->match(array('get', 'post'), 'res/member-{id}', 'ResMemberController@index'); $router->match(array('get', 'post'), 'res/{hash}', 'ResController@show'); $router->match(array('get', 'post'), 'res/{hash}/download', 'ResController@download'); $router->match(array('get', 'post'), 'res/{hash}/download_credit', 'ResController@downloadCredit'); $router->match(array('get', 'post'), 'member_res', 'MemberResController@index'); $router->match(array('get', 'post'), 'member_res/edit', 'MemberResController@edit'); $router->match(array('get', 'post'), 'member_res/replace_file', 'MemberResController@replaceFile'); $router->match(array('post'), 'member_res/delete', 'MemberResController@delete'); $router->match(array('get', 'post'), 'member_res/upload', 'MemberResController@upload'); $router->match(array('get', 'post'), 'member_res_download', 'MemberResDownloadController@index'); });