Skip to content

Commit

Permalink
Adds a public constructor for API Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Koronaa committed Jul 24, 2023
1 parent d867b98 commit 2c15d16
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Networker/APIManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class APIManager{

private let configManager = ConfigurationManager.shared

public init(){}

public func makeRequest<T:Decodable>(with request:URLRequestConvertible,for response:T.Type) async throws -> T{

return try await withCheckedThrowingContinuation{ continuation in
Expand Down

0 comments on commit 2c15d16

Please sign in to comment.