First Commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package win.tap_tap.papertrader
|
||||
|
||||
//const val API_ENDPOINT = "http://127.0.0.1:8080"
|
||||
|
||||
const val API_ENDPOINT = "https://papertrader.tap-tap.win"
|
||||
|
||||
enum class Endpoints(val path: String) {
|
||||
LOGIN("/api/login"),
|
||||
REGISTER("/api/register"),
|
||||
LOGOUT("/api/logout"),
|
||||
GET_CHALLENGES("/api/get-challenges"),
|
||||
REFRESH_TOKEN("/api/refresh-token"),
|
||||
|
||||
// GET_PARTICIPANTS("/api/get-participants"),
|
||||
CREATE_CHALLENGE("/api/create-challenge"),
|
||||
GET_MISSING_PARTICIPANTS("/api/get-missing-participants"),
|
||||
ADD_PARTICIPANT("/api/add-participant"),
|
||||
GET_STOCKS("/api/get-stocks"),
|
||||
ASSET_BUY("/api/asset/buy"),
|
||||
ASSET_SELL("/api/asset/sell"),
|
||||
CHALLENGE_LEAVE("/api/challenge/leave"),
|
||||
CHALLENGE_KICK("/api/challenge/kick"),
|
||||
GET_CHALLENGE_DATA("/api/challenge/data"),
|
||||
USER_DELETE("/api/user/delete");
|
||||
|
||||
fun full(): String = API_ENDPOINT + this.path
|
||||
fun endpoint(): String = this.path
|
||||
}
|
||||
Reference in New Issue
Block a user