diff --git a/Apps/Locations/Libraries/Sources/APICore/Use Cases/MakeURLRequestUseCase.swift b/Apps/Locations/Libraries/Sources/APICore/Use Cases/MakeURLRequestUseCase.swift index 1bcfa18..fce9754 100644 --- a/Apps/Locations/Libraries/Sources/APICore/Use Cases/MakeURLRequestUseCase.swift +++ b/Apps/Locations/Libraries/Sources/APICore/Use Cases/MakeURLRequestUseCase.swift @@ -11,12 +11,16 @@ import Foundation /// This use case generate a url request out of a given endpoint. public struct MakeURLRequestUseCase { + // MARK: Initialisers + + public init() {} + // MARK: Functions /// Generate a `URLRequest` instance out of a given endpoint that conforms to the `Endpoint` protocol. /// - Parameter endpoint: An endpoint which is used to generate a `URLRequest` instance from. /// - Returns: A `URLRequest` instance filled with data provided by the given endpoint. - func callAsFunction(endpoint: some Endpoint) throws -> URLRequest { + public func callAsFunction(endpoint: some Endpoint) throws -> URLRequest { var urlComponents = URLComponents() urlComponents.scheme = endpoint.scheme