This commit is contained in:
Trey t
2023-06-26 18:44:32 -05:00
parent 79ee615e8c
commit 2e7b2cf145
4 changed files with 16 additions and 5 deletions

View File

@@ -7,6 +7,11 @@
import Foundation
enum BaseURLs: String {
case local = "http://127.0.0.1:8000/"
case dev = "https://dev.werkout.fitness"
}
enum FetchableError: Error {
case apiError(Error)
case noData
@@ -32,7 +37,7 @@ protocol Postable: Fetchable {
extension Fetchable {
var baseURL: String {
"http://127.0.0.1:8000/"
BaseURLs.local.rawValue
}
var attachToken: Bool {