Skip to content
This repository has been archived by the owner on Jun 17, 2019. It is now read-only.

Commit

Permalink
Add new routes for ThreadController and ThreadAnswerController contro…
Browse files Browse the repository at this point in the history
…llers functions
  • Loading branch information
kaboel committed Apr 19, 2019
1 parent b961558 commit 528cae9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,8 @@
'index', 'edit'
]);

// Route::get('/thread', 'ThreadController@index')->name('admin.thread.index');
// Route::resource('thread', 'ThreadController')->except([
// 'index'
// ]);
Route::get('/thread/{query}', 'ThreadController@index')->name('admin.thread.index');
Route::get('/thread/{thread}/show', 'ThreadController@show')->name('admin.thread.show');

//Hospital's Rooms Controller -->
Route::get('/room/{room_id}/{hospital_id}/edit', 'RoomController@edit')->name('room.edit');
Expand Down Expand Up @@ -163,6 +161,10 @@
]);

Route::get('/thread/{query}', 'ThreadController@index')->name('doctor.thread.index');
Route::get('/thread/{thread}/show', 'ThreadController@show')->name('doctor.thread.show');

Route::get('/profile/{doctor}/threads', 'ThreadAnswerController@index')->name('doctor.profile.thread');
Route::put('/thread/{thread}/destroy', 'ThreadAnswerController@destroy')->name('doctor.thread.answer.destroy');

// Home -->
Route::get('/', 'DocController@dashboard')->name('doctor.dashboard');
Expand Down

0 comments on commit 528cae9

Please sign in to comment.