Plugin work

This commit is contained in:
Lucien Greathouse 2018-05-25 23:38:03 -07:00
parent 3e4b595e3b
commit a9d24f1493
4 changed files with 12 additions and 3 deletions

View file

@ -1,5 +1,3 @@
local HttpService = game:GetService("HttpService")
local Config = require(script.Parent.Config)
local Promise = require(script.Parent.Promise)
local Version = require(script.Parent.Version)

View file

@ -51,4 +51,12 @@ function Http.post(url, body)
end)
end
function Http.jsonEncode(object)
return HttpService:JSONEncode(object)
end
function Http.jsonDecode(source)
return HttpService:JSONDecode(source)
end
return Http

View file

@ -13,6 +13,9 @@ function Session.new()
setmetatable(self, Session)
local api = ApiContext.new(REMOTE_URL)
api:connect()
return self
end