Last active
October 28, 2017 01:58
-
-
Save dnaismyth/c7efcbee600514daa2f4b26b6dae018b to your computer and use it in GitHub Desktop.
Hold our API constants and URL
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
| 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