Restore user/name route but as deprecated

This commit is contained in:
Bubka 2023-03-22 15:40:44 +01:00
parent dae0a93ce8
commit 18e83e1f4a

View File

@ -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
*/