<?php
 Route::group( [ 'middleware' => [ \TechOnline\Laravel\Middleware\BaseMiddleware::class, \TechSoft\Laravel\Firewall\FirewallMiddleware::class, \App\Http\Middleware\MemberAuth::class, ] ], function () { Route::match(['get', 'post'], '', '\App\Http\Controllers\Main\IndexController@index'); Route::match(['get', 'post'], 'data/image_select_dialog', '\App\Http\Controllers\Main\DataController@imageSelectDialog'); Route::match(['get', 'post'], 'data/temp_upload/{category}', '\App\Http\Controllers\Main\DataController@tempUpload'); Route::match(['get', 'post'], 'member', '\App\Http\Controllers\Main\MemberController@index'); Route::match(['get', 'post'], 'member/profile', '\App\Http\Controllers\Main\MemberProfileController@index'); Route::match(['get', 'post'], 'member/vip', '\App\Http\Controllers\Main\MemberVipController@index'); Route::match(['get', 'post'], 'member/vip_watch/{id}', '\App\Http\Controllers\Main\MemberVipController@watch'); Route::match(['get', 'post'], 'member/vip_calc', '\App\Http\Controllers\Main\MemberVipController@calc'); Route::match(['get', 'post'], 'member/favorite_submit', '\App\Http\Controllers\Main\MemberFavoriteController@submit'); Route::match(['get', 'post'], 'member/exam', '\App\Http\Controllers\Main\MemberExamController@index'); Route::match(['get', 'post'], 'member/exam/{id}', '\App\Http\Controllers\Main\MemberExamController@view')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'member/favorite_question', '\App\Http\Controllers\Main\MemberFavoriteController@question'); Route::match(['get', 'post'], 'search', '\App\Http\Controllers\Main\SearchController@index'); Route::match(['get', 'post'], 'search/question', '\App\Http\Controllers\Main\SearchController@question'); Route::match(['get', 'post'], 'search/paper', '\App\Http\Controllers\Main\SearchController@paper'); Route::match(['get', 'post'], 'search/vip_article', '\App\Http\Controllers\Main\SearchController@vipArticle'); Route::match(['get', 'post'], 'article/{id}', '\App\Http\Controllers\Main\ArticleController@index')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'news', '\App\Http\Controllers\Main\NewsController@index'); Route::match(['get', 'post'], 'news/{id}', '\App\Http\Controllers\Main\NewsController@view')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'vip_article', '\App\Http\Controllers\Main\VipArticleController@index'); Route::match(['get', 'post'], 'vip_article/{id}', '\App\Http\Controllers\Main\VipArticleController@view')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'vip_article/watch/{id}', '\App\Http\Controllers\Main\VipArticleController@watch')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'tags', '\App\Http\Controllers\Main\TagsController@index'); Route::match(['get', 'post'], 'question', '\App\Http\Controllers\Main\QuestionController@index'); Route::match(['get', 'post'], 'question/list/{tags?}', '\App\Http\Controllers\Main\QuestionController@lists'); Route::match(['get', 'post'], 'question/view/{alias}', '\App\Http\Controllers\Main\QuestionController@view')->where(['alias' => '[a-z0-9]+']); Route::match(['get', 'post'], 'question/comment_post/{alias}', '\App\Http\Controllers\Main\QuestionController@commentPost')->where(['alias' => '[a-z0-9]+']); Route::match(['get', 'post'], 'question/comment_delete/{id}', '\App\Http\Controllers\Main\QuestionController@commentDelete')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'question/answer/{alias}', '\App\Http\Controllers\Main\QuestionController@answer')->where(['alias' => '[a-z0-9]+']); Route::match(['get', 'post'], 'paper', '\App\Http\Controllers\Main\PaperController@index'); Route::match(['get', 'post'], 'paper/view/{alias}', '\App\Http\Controllers\Main\PaperController@view'); Route::match(['get', 'post'], 'paper/exam/{alias}', '\App\Http\Controllers\Main\PaperExamController@index'); Route::match(['get', 'post'], 'paper/exam_start/{alias}', '\App\Http\Controllers\Main\PaperExamController@start'); Route::match(['get', 'post'], 'paper/exam_submit/{alias}', '\App\Http\Controllers\Main\PaperExamController@submit'); Route::match(['get', 'post'], 'paper/exam_save/{alias}', '\App\Http\Controllers\Main\PaperExamController@save'); } ); Route::match(['get', 'post'], 'install/ping', '\TechSoft\Laravel\Install\InstallController@ping'); Route::match(['get', 'post'], 'install/execute', '\TechSoft\Laravel\Install\InstallController@execute'); Route::match(['get', 'post'], 'install/lock', '\TechSoft\Laravel\Install\InstallController@lock'); Route::match(['get', 'post'], 'pay/return/{payType}', '\TechSoft\Laravel\Pay\Controllers\ReturnController@index'); Route::match(['get', 'post'], 'pay/notify/{payType}', '\TechSoft\Laravel\Pay\Controllers\NotifyController@index'); Route::match(['get', 'post'], 'sitemap.xml', '\App\Http\Controllers\Main\SitemapController@index'); include __DIR__ . '/routes_admin.php'; 