Exemplo n.º 1
0
    Route::post('topics/wiki/{id}', ['as' => 'topics.wiki', 'uses' => 'TopicsController@wiki']);
    //置顶
    Route::post('topics/pin/{id}', ['as' => 'topics.pin', 'uses' => 'TopicsController@pin']);
    //删除
    Route::delete('topics/delete/{id}', ['as' => 'topics.destroy', 'uses' => 'TopicsController@destroy']);
    //下沉
    Route::post('topics/sink/{id}', ['as' => 'topics.sink', 'uses' => 'TopicsController@sink']);
});
//管理员屏蔽用户
Route::group(['before' => 'manage_users'], function () {
    Route::post('users/blocking/{id}', ['as' => 'users.blocking', 'uses' => 'UsersController@blocking']);
});
Route::post('upload_image', ['as' => 'upload_image', 'uses' => 'TopicsController@uploadImage', 'before' => 'auth']);
// Health Checking
Route::get('heartbeat', function () {
    return \App\Node::first();
});
# ------------------ Password reset stuff ------------------------
// Password reset link request routes...
Route::get('password/email', 'Auth\\PasswordController@getEmail');
Route::post('password/email', 'Auth\\PasswordController@postEmail');
// Password reset routes...
Route::get('password/reset/{token}', 'Auth\\PasswordController@getReset');
Route::post('password/reset', 'Auth\\PasswordController@postReset');
Route::get('auth/qq', 'Auth\\AuthController@qq');
Route::get('auth/weixin', 'Auth\\AuthController@weixin');
Route::get('auth/weibo', 'Auth\\AuthController@weibo');
Route::get('auth/{provider}/callback', 'Auth\\AuthController@callback');
Route::get('auth/login-required', 'Auth\\AuthController@loginRequired');
Route::get('auth/admin-required', 'Auth\\AuthController@adminRequired');
Route::get('auth/user-banned', 'Auth\\AuthController@userBanned');