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 Config = require(script.Parent.Config)
local Promise = require(script.Parent.Promise) local Promise = require(script.Parent.Promise)
local Version = require(script.Parent.Version) local Version = require(script.Parent.Version)

View file

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

View file

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

View file

@ -1,6 +1,6 @@
{ {
"name": "test-project", "name": "test-project",
"servePort": 8001, "servePort": 34872,
"partitions": { "partitions": {
"src": { "src": {
"path": "src", "path": "src",