Created
May 2, 2018 16:56
-
-
Save twittemb/d9507983623780a2c8a2920dae9ed1f3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| struct Route<Model> { | |
| let endpoint: String | |
| } | |
| struct Routes { | |
| static let allBreeds = Route<Breeds>(endpoint: "breeds/list/all") | |
| static let beagles = Route<Beagles>(endpoint: "breed/beagle/images") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment