diff --git a/Sources/Networking/Networking+HTTPRequests.swift b/Sources/Networking/Networking+HTTPRequests.swift index ef05626..d3d0c64 100644 --- a/Sources/Networking/Networking+HTTPRequests.swift +++ b/Sources/Networking/Networking+HTTPRequests.swift @@ -73,6 +73,20 @@ public extension Networking { } } + func newPatch(_ path: String, parameters: [String: Any]) async -> Result { + return await handle(.patch, path: path, parameters: parameters) + } + + func newPatch(_ path: String, parameters: [String: Any]) async -> Result { + let result: Result = await handle(.patch, path: path, parameters: parameters) + switch result { + case .success: + return .success(()) + case .failure(let error): + return .failure(error) + } + } + func newDelete(_ path: String) async -> Result { let result: Result = await handle(.delete, path: path, parameters: nil) switch result {