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');