diff --git a/composer.json b/composer.json index 66c7f6f..e866be6 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "fleetbase/registry-bridge", - "version": "0.0.5", + "version": "0.0.6", "description": "Internal Bridge between Fleetbase API and Extensions Registry", "keywords": [ "fleetbase-extension", diff --git a/extension.json b/extension.json index a1abc39..124f2e4 100644 --- a/extension.json +++ b/extension.json @@ -1,6 +1,6 @@ { "name": "Registry Bridge", - "version": "0.0.5", + "version": "0.0.6", "description": "Internal Bridge between Fleetbase API and Extensions Registry", "repository": "https://github.com/fleetbase/registry-bridge", "license": "AGPL-3.0-or-later", diff --git a/package.json b/package.json index d85b748..0f7e54f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fleetbase/registry-bridge-engine", - "version": "0.0.5", + "version": "0.0.6", "description": "Internal Bridge between Fleetbase API and Extensions Registry", "fleetbase": { "route": "extensions" diff --git a/server/src/Http/Controllers/Internal/v1/RegistryExtensionController.php b/server/src/Http/Controllers/Internal/v1/RegistryExtensionController.php index 2b57937..a6c2eec 100644 --- a/server/src/Http/Controllers/Internal/v1/RegistryExtensionController.php +++ b/server/src/Http/Controllers/Internal/v1/RegistryExtensionController.php @@ -3,6 +3,7 @@ namespace Fleetbase\RegistryBridge\Http\Controllers\Internal\v1; use Fleetbase\Exceptions\FleetbaseRequestValidationException; +use Fleetbase\Http\Requests\AdminRequest; use Fleetbase\Models\Setting; use Fleetbase\RegistryBridge\Http\Controllers\RegistryBridgeController; use Fleetbase\RegistryBridge\Http\Requests\CreateRegistryExtensionRequest; @@ -262,9 +263,11 @@ public function downloadBundle(RegistryExtensionActionRequest $request) * This method fetches the current registry host and token from the configuration * settings or environment variables and returns them in a JSON response. * + * @param AdminRequest $request the incoming HTTP request containing the new host and token + * * @return \Illuminate\Http\JsonResponse a JSON response containing the registry host and token */ - public function getConfig() + public function getConfig(AdminRequest $request) { $registryHost = config('registry-bridge.registry.host', env('REGISTRY_HOST', 'https://registry.fleetbase.io')); $registryToken = config('registry-bridge.registry.token', env('REGISTRY_TOKEN')); @@ -282,11 +285,11 @@ public function getConfig() * If no input is provided, it uses the current configuration values or environment variables. * The updated configuration is then saved in the settings and returned in a JSON response. * - * @param Request $request the incoming HTTP request containing the new host and token + * @param AdminRequest $request the incoming HTTP request containing the new host and token * * @return \Illuminate\Http\JsonResponse a JSON response containing the updated registry host and token */ - public function saveConfig(Request $request) + public function saveConfig(AdminRequest $request) { $currentRegistryHost = config('registry-bridge.registry.host', env('REGISTRY_HOST', 'https://registry.fleetbase.io')); $currentRegistryToken = config('registry-bridge.registry.token', env('REGISTRY_TOKEN'));