diff --git a/CHANGELOG.md b/CHANGELOG.md index d8372b4a..e0b79246 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Infrastructures not refreshed. [#29](https://github.com/passepartoutvpn/passepartout-ios/issues/29) +### Changed + +- Relocated API endpoints, better before first release. + ## 1.0 RC4 1271 (2018-12-04) ### Changed diff --git a/Passepartout/Sources/AppConstants.swift b/Passepartout/Sources/AppConstants.swift index b83c9886..e14cbf0d 100644 --- a/Passepartout/Sources/AppConstants.swift +++ b/Passepartout/Sources/AppConstants.swift @@ -68,9 +68,9 @@ class AppConstants { } class Web { - private static let version = "v2" + private static let version = "v1" - private static let baseURL = Repos.api.appendingPathComponent("api/\(version)") + private static let baseURL = Repos.api.appendingPathComponent(version) static func url(path: String) -> URL { return baseURL.appendingPathComponent(path) @@ -166,7 +166,7 @@ class AppConstants { static let ios = github(repo: "passepartout-ios") - static let api = githubRaw(repo: "passepartout-api") + static let api = githubRaw(repo: "api") } struct License {