Created
September 7, 2015 10:25
-
-
Save keima/4c6439b443ff2cca310c to your computer and use it in GitHub Desktop.
現状。
This file contains 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
/* | |
* main に置いてある | |
*/ | |
public class API extends APIBase { | |
public static final String API_PREFIX = "/v1" | |
public static final String API_POST_NEW = API_HOST + API_PREFIX + "/post/new" | |
public static final String API_POST_EDIT = API_HOST + API_PREFIX + "/post/edit" | |
} |
This file contains 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
/* | |
* flavorごとに分けてある | |
*/ | |
public class APIBase { | |
public static final String API_HOST = "https://api.example.com" | |
public static final String BROWSE_HOST = "http://web.example.com" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
問題点: