git forced me to commit :(
This commit is contained in:
parent
638266307a
commit
4788c8f65f
|
@ -0,0 +1,19 @@
|
|||
require "uri"
|
||||
|
||||
include CrystalGauntlet
|
||||
|
||||
CrystalGauntlet.endpoints["/accounts/backupGJAccount.php"] = ->(context : HTTP::Server::Context): String {
|
||||
params = URI::Params.parse(context.request.body.not_nil!.gets_to_end)
|
||||
LOG.debug { params.inspect }
|
||||
|
||||
user_id, account_id = Accounts.auth(params)
|
||||
if !(user_id && account_id)
|
||||
return "-1"
|
||||
end
|
||||
|
||||
data = params["saveData"].split(';')
|
||||
|
||||
|
||||
|
||||
"1"
|
||||
}
|
|
@ -2,7 +2,7 @@ require "uri"
|
|||
|
||||
include CrystalGauntlet
|
||||
|
||||
CrystalGauntlet.endpoints["/updateGJUserScore22.php"] = ->(context : HTTP::Server::Context): String {
|
||||
CrystalGauntlet.endpoints["/updateGJAccSettings20.php"] = ->(context : HTTP::Server::Context): String {
|
||||
params = URI::Params.parse(context.request.body.not_nil!.gets_to_end)
|
||||
LOG.debug { params.inspect }
|
||||
|
||||
|
|
Loading…
Reference in New Issue