X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/7163997367fd6b77738416b2ae54d6697e392bf2..refs/pull/494/head:/routes/web.php diff --git a/routes/web.php b/routes/web.php index 8259a633b..463e4e77b 100644 --- a/routes/web.php +++ b/routes/web.php @@ -119,15 +119,19 @@ Route::group(['middleware' => 'auth'], function () { Route::get('/ajax/search/entities', 'SearchController@searchEntitiesAjax'); + // Comments + Route::post('/ajax/page/{pageId}/comment/', 'CommentController@save'); + Route::put('/ajax/page/{pageId}/comment/{commentId}', 'CommentController@save'); + Route::delete('/ajax/comment/{id}', 'CommentController@destroy'); + Route::get('/ajax/page/{pageId}/comments/', 'CommentController@getPageComments'); + // Links Route::get('/link/{id}', 'PageController@redirectFromLink'); // Search - Route::get('/search/all', 'SearchController@searchAll'); - Route::get('/search/pages', 'SearchController@searchPages'); - Route::get('/search/books', 'SearchController@searchBooks'); - Route::get('/search/chapters', 'SearchController@searchChapters'); + Route::get('/search', 'SearchController@search'); Route::get('/search/book/{bookId}', 'SearchController@searchBook'); + Route::get('/search/chapter/{bookId}', 'SearchController@searchChapter'); // Other Pages Route::get('/', 'HomeController@index');