mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Plugin work
This commit is contained in:
parent
3e4b595e3b
commit
a9d24f1493
4 changed files with 12 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -13,6 +13,9 @@ function Session.new()
|
|||
|
||||
setmetatable(self, Session)
|
||||
|
||||
local api = ApiContext.new(REMOTE_URL)
|
||||
api:connect()
|
||||
|
||||
return self
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "test-project",
|
||||
"servePort": 8001,
|
||||
"servePort": 34872,
|
||||
"partitions": {
|
||||
"src": {
|
||||
"path": "src",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue