Nextcloud login flow v2 support (not in working state yet)

This commit is contained in:
Vicnet
2023-09-19 12:04:59 +02:00
parent 154cd9a51f
commit 0f16b164d6
6 changed files with 233 additions and 49 deletions

View File

@@ -233,7 +233,7 @@ extension MainViewModel {
do {
let networkPath = networkImagePath(recipeId, full)
let request = RequestWrapper(method: .GET, path: networkPath, accept: .IMAGE)
let (data, _): (Data?, Error?) = try await networkController.sendHTTPRequest(path: request.path, request)
let (data, _): (Data?, Error?) = try await networkController.sendHTTPRequest(request)
guard let data = data else {
print("Error receiving or decoding data.")
return nil