git forced me to commit :(

This commit is contained in:
winter 2023-01-05 23:10:18 +09:00
parent 638266307a
commit 4788c8f65f
2 changed files with 20 additions and 1 deletions

View File

@ -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"
}

View File

@ -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 }