Update API URL following relocation

This commit is contained in:
Davide De Rosa 2018-12-09 12:11:53 +01:00
parent 6b5590c331
commit 5dea24295d
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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 {