Update README.md

This commit is contained in:
Jungpyo Hong 2021-05-03 02:27:54 -05:00 committed by GitHub
parent 56c34a8bc3
commit 8591049e94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@ then make a instance of router.swift file in your code
private let router = Router<YourAPI>()
```
for **YourAPI part**, simple create a new enum with cases about specific api URL
for **YourAPI part**, simply create a new **enum** with cases about specific api URL
> It will make your router more dynamic!
> Don't forget extension to EndPointType!
@ -206,7 +206,7 @@ extension YourAPI: EndPointType {
return "\(country).json"
case .second(let time):
return "\(time).json"
case .raceResults(let name):
case .third(let name):
return "\(name).json"
}
}