use AppHttpControllersProductController;
public function boot() { ... Route::prefix('api') ->middleware('api') ->namespace('AppHttpControllers') // <--------- ->group(base_path('routes/api.php')); ... }