Skip to content

Instantly share code, notes, and snippets.

@dnaismyth
Last active October 28, 2017 01:58
Show Gist options
  • Select an option

  • Save dnaismyth/c7efcbee600514daa2f4b26b6dae018b to your computer and use it in GitHub Desktop.

Select an option

Save dnaismyth/c7efcbee600514daa2f4b26b6dae018b to your computer and use it in GitHub Desktop.
Hold our API constants and URL
import Foundation
struct Constants {
struct URL {
static let baseUrl = "http://localhost:8080/api"
static let searchGamesByTitle = baseUrl + "/games?title="
static let createGameComment = baseUrl + "/games/{gameId}/comments"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment