 
 extension API {
     public enum Error: Swift.Error {
+        case networkFailed(Swift.Error)
         case decodingFailed(DecodeError)
     }
 }


    public func addEntry(for: (Model.Project, Model.Task), at date: Date) {
        let request = Router.addEntry.request(forCompany: company)
        self.request(request, with: auth)
    }

    private func request(_ request: URLRequest, with auth: HTTPBasicAuth) -> DataRequest {
        return Alamofire.request(request)
            .authenticate(user: auth.username, password: auth.password)
    }
}


    case addEntry

    public func request(forCompany company: String) -> URLRequest {
        let baseURL = URL(string: "https://\(company).harvestapp.com")!

        var request = URLRequest(url: baseURL.appendingPathComponent(path))
        request.httpMethod = method.rawValue
