'PagesController@main', 'as' => 'main']);
Route::get('/auth', ['uses' => 'AuthController@steam', 'as' => 'steam']);
Route::get('/test', function()
{
Players::create([ 'game_id' => '571e01a22fd261a8a80041a8', 'steamid' => '123', 'avatar' => 'https://steamcdn-a.akamaihd.net/steamcommunity/pub...', 'number' => 1 ]);
}
);
Route::group(['middleware' => 'auth'],
function ()
{
Route::get('/auth/logout', ['uses' => 'AuthController@logout', 'as' => 'logout']);
Route::get('/settings', ['uses' => 'PagesController@settings']);
Route::post('/ajax/update_trade', ['uses' => 'AuthController@update_trade']);
Route::get('/raffle', ['uses' => 'PagesController@main']);
Route::get('/raffle/
{
id
}
', ['uses' => 'PagesController@raffle']);
Route::post('/raffle_accept', ['uses' => 'PagesController@raffle_accept']);
}
);
Route::group(['prefix' => 'admin', 'middleware' => 'access:admin'],
function ()
{
Route::get('/', ['uses' => 'AdminController@main', 'as' => 'main']);
Route::post('/ajax/create_raffle', ['uses' => 'AdminController@create_raffle']);
Route::post('/ajax/delete_raffle', ['uses' => 'AdminController@delete_raffle']);
}
);