<?php
Route::group( [ 'middleware' => [ 'web.bootstrap', ], 'namespace' => '\App\Web\Controller', ], function () { Route::match(['get', 'post'], '', 'IndexController@index'); Route::match(['get', 'post'], 'blog/{id}', 'BlogController@index')->where(['id' => '[0-9_]+']); Route::match(['get', 'post'], 'blog/{id}/comment', 'BlogController@comment')->where(['id' => '[0-9_]+']); Route::match(['get', 'post'], 'blog/captcha_verify', 'BlogController@captchaVerify'); Route::match(['get', 'post'], 'blog/comment_captcha', 'BlogController@commentCaptcha'); Route::match(['get', 'post'], 'message', 'MessageController@index')->where(['id' => '[0-9_]+']); Route::match(['get', 'post'], 'message/submit', 'MessageController@submit')->where(['id' => '[0-9_]+']); Route::match(['get', 'post'], 'message/captcha_verify', 'MessageController@captchaVerify'); Route::match(['get', 'post'], 'message/submit_captcha', 'MessageController@submitCaptcha'); Route::match(['get', 'post'], 'message/up/{id}', 'MessageController@up')->where(['id' => '[0-9_]+']); Route::match(['get', 'post'], 'message/down/{id}', 'MessageController@down')->where(['id' => '[0-9_]+']); });