Skip to content

Commit 32dac9b

Browse files
committed
Update Example app
1 parent 17c150f commit 32dac9b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Example/CodyFireExample/API/Controllers/Todo/Todo+Get.swift

+5-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ extension TodoController {
1414
return APIRequest("todos")
1515
}
1616

17+
struct Query: Codable {
18+
var param: Bool
19+
}
20+
1721
static func get2() -> APIRequest<[Todo]> {
18-
return APIRequest(ServerURL(base: "https://jsonplaceholder.typicode.com"), "todos")
22+
return APIRequest(ServerURL(base: "https://jsonplaceholder.typicode.com"), "todos").query(Query(param: true))
1923
}
2024
}

Example/CodyFireExample/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2424
let testFlight = CodyFireEnvironment(baseURL: "https://jsonplaceholder.typicode.com")
2525
let appStore = CodyFireEnvironment(baseURL: "https://jsonplaceholder.typicode.com")
2626
CodyFire.shared.configureEnvironments(dev: dev, testFlight: testFlight, appStore: appStore)
27-
CodyFire.shared.logLevel = .off
27+
CodyFire.shared.logLevel = .debug
2828
CodyFire.shared.fillCodableHeaders = {
2929
return Headers(someKey1: "hellow", someKey2: nil)
3030
}

0 commit comments

Comments
 (0)