mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 14:31:59 +01:00
Ports the TG globals controller and converts globals. (#18057)
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * Port the /TG/ globals controller. * part 1 * part 2 * oops * part 3 * Hollow Purple * sadas * bsbsdb * muda na agaki ta * ids 1-15 * 16-31 * 41-75 * bring me back to how things used to be before i lost it all * the strength of mayhem * final touches * cl * protect some vars * update sdql2 to use glob * stuff? * forgot that is not defined there * whoops * observ * but it never gets better * a --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ var/global/forum_api_key = null
|
||||
/datum/http_request/forum_api/proc/_get_url(suffix)
|
||||
PRIVATE_PROC(TRUE)
|
||||
|
||||
. = "[config.forum_api_path]/[end_point]"
|
||||
. = "[GLOB.config.forum_api_path]/[end_point]"
|
||||
|
||||
if (suffix)
|
||||
. += "/[suffix]"
|
||||
|
||||
@@ -25,21 +25,21 @@ var/global/forumuser_api_key = null
|
||||
/datum/http_request/forumuser_api
|
||||
|
||||
/datum/http_request/forumuser_api/proc/prepare_roles_query(role_id)
|
||||
var/url = "[config.forumuser_api_url]/staff/[role_id]"
|
||||
var/url = "[GLOB.config.forumuser_api_url]/staff/[role_id]"
|
||||
|
||||
var/list/headers = list("Authorization" = "Bearer [forumuser_api_key]")
|
||||
|
||||
prepare(RUSTG_HTTP_METHOD_GET, url, headers=headers)
|
||||
|
||||
/datum/http_request/forumuser_api/proc/prepare_user_discord(discord_id)
|
||||
var/url = "[config.forumuser_api_url]/user/discord/[discord_id]"
|
||||
var/url = "[GLOB.config.forumuser_api_url]/user/discord/[discord_id]"
|
||||
|
||||
var/list/headers = list("Authorization" = "Bearer [forumuser_api_key]")
|
||||
|
||||
prepare(RUSTG_HTTP_METHOD_GET, url, headers=headers)
|
||||
|
||||
/datum/http_request/forumuser_api/proc/prepare_user_ckey(ckey)
|
||||
var/url = "[config.forumuser_api_url]/user/ckey/[ckey]"
|
||||
var/url = "[GLOB.config.forumuser_api_url]/user/ckey/[ckey]"
|
||||
|
||||
var/list/headers = list("Authorization" = "Bearer [forumuser_api_key]")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user