<?php
 Route::group( [ 'middleware' => [ \TechOnline\Laravel\Middleware\BaseMiddleware::class, \TechSoft\Laravel\Admin\Middleware\AdminAuthMiddleware::class, ], 'prefix' => 'module/manage', 'namespace' => '\App\Modules', ], function () { Route::match(['get', 'post'], 'user_info/{id}', 'User\Manage\HomeController@info'); Route::match(['get', 'post'], 'prize_pool', 'PrizePool\Manage\HomeController@index'); Route::match(['get', 'post'], 'prize_pool_prize', 'PrizePool\Manage\HomeController@prize'); Route::match(['get', 'post'], 'prize_pool_prize_edit/{id?}', 'PrizePool\Manage\HomeController@prizeEdit'); Route::match(['get', 'post'], 'prize_pool_prize_delete/{id}', 'PrizePool\Manage\HomeController@prizeDelete'); Route::match(['get', 'post'], 'prize_pool_prize_view/{id}', 'PrizePool\Manage\HomeController@prizeView'); Route::match(['get', 'post'], 'prize_pool_prize_code/{id}', 'PrizePool\Manage\HomeController@prizeCode'); Route::match(['get', 'post'], 'prize_pool_prize_code_import/{id}', 'PrizePool\Manage\HomeController@prizeCodeImport'); Route::match(['get', 'post'], 'prize_pool_prize_dialog', 'PrizePool\Manage\HomeController@prizeDialog'); Route::match(['get', 'post'], 'prize_pool_drawn', 'PrizePool\Manage\HomeController@drawn'); Route::match(['get', 'post'], 'prize_pool_drawn_check/{id}', 'PrizePool\Manage\HomeController@drawnCheck'); Route::match(['get', 'post'], 'prize_pool_drawn_shipped/{id}', 'PrizePool\Manage\HomeController@drawnShipped'); Route::match(['get', 'post'], 'prize_pool_setting', 'PrizePool\Manage\HomeController@setting'); Route::match(['get', 'post'], 'egg', 'Egg\Manage\HomeController@index'); Route::match(['get', 'post'], 'egg_activity/{id}', 'Egg\Manage\HomeController@activity'); Route::match(['get', 'post'], 'egg_activity_edit/{id?}', 'Egg\Manage\HomeController@activityEdit'); Route::match(['get', 'post'], 'egg_activity_delete/{id}', 'Egg\Manage\HomeController@activityDelete'); Route::match(['get', 'post'], 'egg_drawn/{id}', 'Egg\Manage\HomeController@drawn'); } ); Route::group( [ 'middleware' => [ \TechOnline\Laravel\Middleware\BaseMiddleware::class, \TechSoft\Laravel\Admin\Middleware\AdminAuthMiddleware::class, ], 'prefix' => 'module', 'namespace' => '\App\Modules', ], function () { Route::match(['get', 'post'], 'user_info/{id}', 'User\Manage\HomeController@info'); } ); Route::group( [ 'middleware' => [ \TechOnline\Laravel\Middleware\BaseMiddleware::class, \App\Http\Middleware\MemberAuth::class, ], 'prefix' => 'm', 'namespace' => '\App\Modules', ], function () { Route::match(['get', 'post'], 'user_oauth_{oauthType}_login', 'User\Mobile\OauthController@login'); Route::match(['get', 'post'], 'user_oauth_{oauthType}_callback', 'User\Mobile\OauthController@callback'); Route::match(['get', 'post'], 'user_money_{alias}', 'User\Mobile\MoneyController@index')->where(['alias' => '[a-z0-9]+']); Route::match(['get', 'post'], 'user_money_{alias}_cash', 'User\Mobile\MoneyController@cash')->where(['alias' => '[a-z0-9]+']); Route::match(['get', 'post'], 'user_credit_{alias}', 'User\Mobile\CreditController@index')->where(['alias' => '[a-z0-9]+']); Route::match(['get', 'post'], 'prize_pool_{alias}_pay_draw_{activityType}_{activityAlias}', 'PrizePool\Mobile\HomeController@payDraw')->where(['alias' => '[a-z0-9]+']); Route::match(['get', 'post'], 'prize_pool_{alias}_activity_{activityType}_{activityAlias}', 'PrizePool\Mobile\HomeController@activity')->where(['alias' => '[a-z0-9]+']); Route::match(['get', 'post'], 'prize_pool_{alias}_users_{activityType}_{activityAlias}', 'PrizePool\Mobile\HomeController@users')->where(['alias' => '[a-z0-9]+']); Route::match(['get', 'post'], 'prize_pool_{alias}_fill_{drawnId}', 'PrizePool\Mobile\HomeController@fill')->where(['alias' => '[a-z0-9]+']); Route::match(['get'], 'egg_{alias}', 'Egg\Mobile\HomeController@home')->where(['alias' => '[a-z0-9]+']); Route::match(['post'], 'egg_{alias}_draw', 'Egg\Mobile\HomeController@draw')->where(['alias' => '[a-z0-9]+']); } ); 