File tree Expand file tree Collapse file tree
src/placeos-rest-api/controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -149,16 +149,18 @@ module PlaceOS::Api
149149 driver = params[" driver" ]
150150 commit = params[" commit" ]
151151
152- # Request to core:
153- # "/api/core/v1/drivers/#{file_name}/details?repository=#{repository}&count=#{number_of_commits}"
154- # Returns: https://github.com/placeos/driver/blob/master/docs/command_line_options.md#discovery-and-defaults
155- details = Api ::Systems .core_for(driver, request_id) do |core_client |
156- core_client.driver_details(driver, commit, current_repo.folder_name)
152+ info = Build ::Client .client do |client |
153+ client.metadata(
154+ file: driver,
155+ url: repository.uri,
156+ commit: commit,
157+ username: repository.username,
158+ password: repository.password,
159+ request_id: request_id,
160+ )
157161 end
158162
159- # The raw JSON string is returned
160- response.headers[" Content-Type" ] = " application/json"
161- render text: details
163+ render json: info
162164 end
163165
164166 get " /:id/branches" , :branches do
You can’t perform that action at this time.
0 commit comments