1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| Route::get('/','QuestionsController@index');
Auth::routes();
Route::get('/home', 'HomeController@index');
Route::get('email/verify/{token}',['as' => 'email.verify', 'uses' => 'EmailController@verify']);
Route::resource('questions','QuestionsController',['names' => [ 'create' => 'question.create', 'show' => 'question.show', ]]);
Route::post('questions/{question}/answer','AnswersController@store');
Route::get('question/{question}/follow','QuestionFollowController@follow');
Route::get('notifications','NotificationsController@index'); Route::get('notifications/{notification}','NotificationsController@show');
Route::get('avatar','UsersController@avatar'); Route::post('avatar','UsersController@changeAvatar');
Route::get('password','PasswordController@password'); Route::post('password/update','PasswordController@update');
Route::get('setting','SettingController@index'); Route::post('setting','SettingController@store');
Route::get('inbox','InboxController@index'); Route::get('inbox/{dialogId}','InboxController@show'); Route::post('inbox/{dialogId}/store','InboxController@store');
|