Skip to content
This repository was archived by the owner on Apr 19, 2025. It is now read-only.

Commit 31dffcc

Browse files
committed
Rename file, namespace routes
1 parent ed8afeb commit 31dffcc

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/routes.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
$router = app('router');
44

5-
$router->group(['middleware' => 'web'], function () use ($router) {
6-
$router->get('/auth/token', 'App\Http\Controllers\Auth\TwoFactorAuthController@showTwoFactorForm')->name('auth.token');
7-
$router->post('/auth/token', 'App\Http\Controllers\Auth\TwoFactorAuthController@verifyToken');
5+
$router->group([
6+
'middleware' => ['web', 'guest'],
7+
'namespace' => 'App\Http\Controllers\Auth',
8+
], function () use ($router) {
9+
$router->get('/auth/token', 'TwoFactorAuthController@showTwoFactorForm')->name('auth.token');
10+
$router->post('/auth/token', 'TwoFactorAuthController@verifyToken');
811
});

0 commit comments

Comments
 (0)