mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-08 01:14:29 +01:00
Restore user/name route but as deprecated
This commit is contained in:
parent
dae0a93ce8
commit
18e83e1f4a
@ -6,6 +6,7 @@
|
||||
use App\Api\v1\Controllers\SettingController;
|
||||
use App\Api\v1\Controllers\TwoFAccountController;
|
||||
use App\Api\v1\Controllers\UserController;
|
||||
use Illuminate\Support\Facades\Date;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
/*
|
||||
@ -14,6 +15,13 @@
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
/**
|
||||
* DEPRECATED - Unprotected routes
|
||||
*/
|
||||
Route::get('user/name', function() {
|
||||
return response()->json(['deprecation' => true], 200, ['Deprecation' => Date::createFromDate(2023, 03, 21)->toRfc7231String()]);
|
||||
});
|
||||
|
||||
/**
|
||||
* Routes protected by the api authentication guard
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user