API № 1:
Код: Выделить всё
Route::prefix('v1')->group(function () {
Route::controller('handelProController')->group(function () {
Route::post('products/all/list', 'getList');
});
});
Код: Выделить всё
Route::prefix('v2')->group(function () {
Route::controller('anotherProController')->group(function () {
Route::post('products/list', 'getList');
});
});
Код: Выделить всё
redirect()->to('products/list') /* redirect API No. 1 to API No. 2*/
Код: Выделить всё
redirect()->action([AnotherProController::class, 'getList']);
Спасибо, ребята
Подробнее здесь: https://stackoverflow.com/questions/786 ... of-laravel