group(function () { includeRouteFiles(__DIR__ . '/api/versions'); }); //Default exception response if no route found under api urls Route::fallback(function () { return response()->json(['error' => trans('api.something_went_wrong')], 404); });