|
@@ -9,6 +9,15 @@
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
|
|
|
|
|
+| Reminder about typical REST routes
|
|
|
|
+| GET /posts List posts
|
|
|
|
+| GET /posts/create Show a post creation form
|
|
|
|
+| POST /posts Create a post
|
|
|
|
+| GET /posts/{id} Show a post
|
|
|
|
+| GET /posts/{id}/edit Show a post update form
|
|
|
|
+| PATCH /posts/{id} Update a post
|
|
|
|
+| DELETE /posts/{id} Delete a post
|
|
|
|
+|--------------------------------------------------------------------------
|
|
*/
|
|
*/
|
|
|
|
|
|
/** @var \Illuminate\Routing\Router $this */
|
|
/** @var \Illuminate\Routing\Router $this */
|
|
@@ -16,22 +25,4 @@ $this->get('/', 'PostsController@index');
|
|
$this->post('/posts', 'PostsController@store');
|
|
$this->post('/posts', 'PostsController@store');
|
|
$this->get('/posts/create', 'PostsController@create');
|
|
$this->get('/posts/create', 'PostsController@create');
|
|
$this->get('/posts/{post}', 'PostsController@show');
|
|
$this->get('/posts/{post}', 'PostsController@show');
|
|
-
|
|
|
|
$this->post('/posts/{post}/comments', 'CommentsController@store');
|
|
$this->post('/posts/{post}/comments', 'CommentsController@store');
|
|
-
|
|
|
|
-/* Reminder about typical REST routes
|
|
|
|
-
|
|
|
|
-GET /posts List posts
|
|
|
|
-GET /posts/create Show a post creation form
|
|
|
|
-POST /posts Create a post
|
|
|
|
-GET /posts/{id} Show a post
|
|
|
|
-GET /posts/{id}/edit Show a post update form
|
|
|
|
-PATCH /posts/{id} Update a post
|
|
|
|
-DELETE /posts/{id} Delete a post
|
|
|
|
-
|
|
|
|
- */
|
|
|
|
-
|
|
|
|
-// Auth::routes();
|
|
|
|
-$this->auth();
|
|
|
|
-
|
|
|
|
-Route::get('/home', 'HomeController@index')->name('home');
|
|
|