WIP
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user