add prefix in laravel route api code example
Example: prefix laravel route
Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) {
//
});
Route::get('posts/{post}/comments/{comment}', function ($postId, $commentId) {
//
});