<?php
$middlewares = [
    'web.bootstrap'
];
if (class_exists(\Module\Member\Middleware\WebAuthMiddleware::class)) {
    $middlewares[] = \Module\Member\Middleware\WebAuthMiddleware::class;
}
Route::group(
    [
        'middleware' => $middlewares,
        'namespace' => '\App\Web\Controller',
    ], function () {

    Route::match(['get', 'post'], '', 'IndexController@index');
    Route::match(['get', 'post'], 'test', 'IndexController@test');
    Route::match(['get', 'post'], 'member/{id}', 'MemberController@show');
    Route::match(['get', 'post'], 'member_profile', 'MemberProfileController@index');

});
