Skip to content

Instantly share code, notes, and snippets.

@twittemb
Created May 2, 2018 16:56
Show Gist options
  • Select an option

  • Save twittemb/d9507983623780a2c8a2920dae9ed1f3 to your computer and use it in GitHub Desktop.

Select an option

Save twittemb/d9507983623780a2c8a2920dae9ed1f3 to your computer and use it in GitHub Desktop.
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