mirror of
https://github.com/jphong1111/awesome-ios-developer.git
synced 2025-03-14 03:50:03 +07:00
Update README.md
This commit is contained in:
parent
56c34a8bc3
commit
8591049e94
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user