<?php
 Route::group( [ 'middleware' => [ \TechOnline\Laravel\Middleware\BaseMiddleware::class, \App\Http\Middleware\MemberAuth::class, ] ], function () { Route::match(['get', 'post'], '', '\App\Http\Controllers\Main\IndexController@index'); Route::match(['get', 'post'], 'member/profile', '\App\Http\Controllers\Main\MemberProfileController@index'); Route::match(['get', 'post'], 'member/profile_basic', '\App\Http\Controllers\Main\MemberProfileController@basic'); Route::match(['get', 'post'], 'member', '\App\Http\Controllers\Main\MemberController@index'); Route::match(['get', 'post'], 'member/{id}', '\App\Http\Controllers\Main\MemberController@one')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'member/{id}/threads', '\App\Http\Controllers\Main\MemberController@threads')->where(['page' => '[0-9]+']); Route::match(['get', 'post'], 'member/{id}/posts', '\App\Http\Controllers\Main\MemberController@posts')->where(['page' => '[0-9]+']); Route::match(['get', 'post'], 'member/{id}/ups', '\App\Http\Controllers\Main\MemberController@ups')->where(['page' => '[0-9]+']); Route::match(['get', 'post'], 'member/{id}/favorites', '\App\Http\Controllers\Main\MemberController@favorites')->where(['page' => '[0-9]+']); Route::match(['get', 'post'], 'data/image_select_dialog/{action?}', '\App\Http\Controllers\Main\DataController@imageSelectDialog'); Route::match(['get', 'post'], 'data/temp_upload/{category}', '\App\Http\Controllers\Main\DataController@tempUpload'); Route::match(['get', 'post'], 'forum/{id}/{page?}', '\App\Http\Controllers\Main\ForumController@index')->where(['id' => '[0-9]+', 'page' => '[0-9]+']); Route::match(['get', 'post'], 'search', '\App\Http\Controllers\Main\SearchController@index')->where(['page' => '[0-9]+']); Route::match(['get', 'post'], 'thread/edit/{id?}', '\App\Http\Controllers\Main\ThreadController@edit')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'thread/delete/{id}', '\App\Http\Controllers\Main\ThreadController@delete')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'thread/set_top/{id}', '\App\Http\Controllers\Main\ThreadController@setTop')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'thread/set_digest/{id}', '\App\Http\Controllers\Main\ThreadController@setDigest')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'thread/{id}/{page?}', '\App\Http\Controllers\Main\ThreadController@index')->where(['id' => '[0-9]+', 'page' => '[0-9]+']); Route::match(['get', 'post'], 'thread/toggle/{id}/{action}', '\App\Http\Controllers\Main\ThreadController@toggle')->where(['id' => '[0-9]+', 'action' => '[a-z]+']); Route::match(['get', 'post'], 'thread/post/{id}', '\App\Http\Controllers\Main\ThreadController@post')->where(['id' => '[0-9]+']); Route::match(['get', 'post'], 'thread/post_delete/{id}', '\App\Http\Controllers\Main\ThreadController@postDelete')->where(['id' => '[0-9]+']); } ); Route::match(['get', 'post'], 'placeholder/{width}x{height}', '\TechSoft\Laravel\Misc\Controllers\PlaceholderController@index'); 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'); include __DIR__ . '/routes_admin.php'; 