This commit is contained in:
Trey t
2023-07-02 18:55:26 -05:00
parent 9d38a33b80
commit 2344bcbd6a
5 changed files with 46 additions and 76 deletions

View File

@@ -10,6 +10,10 @@ import Foundation
enum BaseURLs: String {
case local = "http://127.0.0.1:8000"
case dev = "https://dev.werkout.fitness"
static var currentBaseURL: String {
return BaseURLs.dev.rawValue
}
}
enum FetchableError: Error {
@@ -37,7 +41,7 @@ protocol Postable: Fetchable {
extension Fetchable {
var baseURL: String {
BaseURLs.local.rawValue
BaseURLs.currentBaseURL
}
var attachToken: Bool {