Comments, TODO list.
This commit is contained in:
parent
0840d1003d
commit
7738fea746
1 changed files with 10 additions and 9 deletions
19
restapi.go
19
restapi.go
|
@ -22,13 +22,16 @@ import (
|
||||||
// Please let me know if you know of any others.
|
// Please let me know if you know of any others.
|
||||||
const (
|
const (
|
||||||
// Base URLS
|
// Base URLS
|
||||||
DISCORD = "http://discordapp.com"
|
DISCORD = "http://discordapp.com"
|
||||||
API = DISCORD + "/api"
|
API = DISCORD + "/api"
|
||||||
SERVERS = API + "/guilds"
|
SERVERS = API + "/guilds"
|
||||||
CHANNELS = API + "/channels"
|
CHANNELS = API + "/channels"
|
||||||
USERS = API + "/users"
|
USERS = API + "/users"
|
||||||
LOGIN = API + "/auth/login"
|
LOGIN = API + "/auth/login"
|
||||||
LOGOUT = API + "/auth/logout"
|
LOGOUT = API + "/auth/logout"
|
||||||
|
GATEWAY = API + "/gateway"
|
||||||
|
|
||||||
|
// Constants not implemented below yet. TODO tracker :)
|
||||||
REGISTER = API + "/auth/register"
|
REGISTER = API + "/auth/register"
|
||||||
INVITE = API + "/invite"
|
INVITE = API + "/invite"
|
||||||
TRACK = API + "/track"
|
TRACK = API + "/track"
|
||||||
|
@ -41,8 +44,6 @@ const (
|
||||||
ICE = API + "/voice/ice"
|
ICE = API + "/voice/ice"
|
||||||
REPORT = API + "/report"
|
REPORT = API + "/report"
|
||||||
INTEGRATIONS = API + "/integrations"
|
INTEGRATIONS = API + "/integrations"
|
||||||
GATEWAY = API + "/gateway"
|
|
||||||
|
|
||||||
// Authenticated User Info
|
// Authenticated User Info
|
||||||
AU = USERS + "/@me"
|
AU = USERS + "/@me"
|
||||||
AU_DEVICES = ME + "/devices"
|
AU_DEVICES = ME + "/devices"
|
||||||
|
|
Loading…
Reference in a new issue