-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update APIConstant and RequestManager
- Loading branch information
1 parent
c19f5b5
commit 5ea7493
Showing
5 changed files
with
14 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
public protocol DomainProtocol { | ||
static var domain: String { get } | ||
static var apiKey: String { get } | ||
static var domain: String { get set } | ||
static var apiKey: String { get set } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 3 additions & 14 deletions
17
Sources/SwiftChain/Data/API/Request/ExampleRequest/APIConstant.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,6 @@ | ||
// MARK: - APIConstant | ||
|
||
enum APIConstant { | ||
|
||
} | ||
|
||
// MARK: - DomainProtocol | ||
|
||
extension APIConstant: DomainProtocol { | ||
static var domain: String { | ||
"YOUR_DOMAIN" | ||
} | ||
|
||
static var apiKey: String { | ||
"YOUR_API_KEY" | ||
} | ||
public enum APIConstant: DomainProtocol { | ||
public static var domain: String = "YOUR_DOMAIN" | ||
public static var apiKey: String = "YOUR_API_KEY" | ||
} |