Implemented Worker::Api#fetch_url, check for launcher updates from github releases, refresh user session, merge application lists from both backends when user is signed in

This commit is contained in:
2026-11-04 14:09:54 -06:00
parent aa1145f1dc
commit 4b95fcdf15
3 changed files with 125 additions and 18 deletions

View File

@@ -4,7 +4,8 @@ module W3DHubLauncher
class Worker
class Api
# downloads requested resource, returns raw string
def self.fetch_url
def self.fetch_url(url, method = :get, headers = nil, body = nil, &block)
Worker::Request.new(:fetch_url, { url: url, method: method, headers: headers, body: body }, &block)
end
# downloads requested resource, periodically reporting progress until completion, returning path for file on disk