From 4b5e3b81bcd775a99b3c4b548fc91d87c75ab483 Mon Sep 17 00:00:00 2001 From: Kamil Niemczycki Date: Thu, 19 May 2022 13:22:01 +0200 Subject: [PATCH] Clearing your router of comments --- routes/api.php | 15 --------------- routes/console.php | 13 ++----------- routes/web.php | 14 +++----------- 3 files changed, 5 insertions(+), 37 deletions(-) diff --git a/routes/api.php b/routes/api.php index 58b66d3..831d986 100644 --- a/routes/api.php +++ b/routes/api.php @@ -4,21 +4,6 @@ declare(strict_types=1); use Illuminate\Support\Facades\Route; -/* -|-------------------------------------------------------------------------- -| API Routes -|-------------------------------------------------------------------------- -| -| Here is where you can register API routes for your application. These -| routes are loaded by the RouteServiceProvider within a group which -| is assigned the "api" middleware group. Enjoy building your API! -| -*/ - -// Route::middleware('auth:sanctum')->get('/user', function (Request $request) { -// return $request->user(); -// }); - Route::get('ping', function () { return ['message' => 'pong']; }); diff --git a/routes/console.php b/routes/console.php index e05f4c9..c428e20 100644 --- a/routes/console.php +++ b/routes/console.php @@ -1,19 +1,10 @@ comment(Inspiring::quote()); })->purpose('Display an inspiring quote'); diff --git a/routes/web.php b/routes/web.php index d296dbb..0fef0cb 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,17 +1,8 @@ group(function () { Route::namespace('Dashboard')->middleware('auth')->group(function () { @@ -50,6 +41,7 @@ Route::name('admin.')->group(function () { ->name('destroy'); }); }); + Route::name('auth.')->namespace('Auth')->group(function () { Route::get('login', 'LoginController@login') ->name('login');