Skip to content

Commit b0cba58

Browse files
authored
Update README.md
1 parent 74139c8 commit b0cba58

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ Wondered? That's only little part of what you will get from this lib! 🍻
3434
### How to send GET request
3535

3636
```swift
37-
APIRequest<ResponseModel>("endpoint")
38-
.onSuccess { model in
37+
APIRequest<ResponseModel>("endpoint").onSuccess { model in
3938
//here's your decoded model!
4039
//no need to check http.statusCode, I already did it for you! By default it's 200 OK
4140
//of course you can choose which statusCode is equal to success (look at the `POST` and `DELETE` examples below)

0 commit comments

Comments
 (0)