mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-25 04:54:07 +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 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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "test-project",
|
"name": "test-project",
|
||||||
"servePort": 8001,
|
"servePort": 34872,
|
||||||
"partitions": {
|
"partitions": {
|
||||||
"src": {
|
"src": {
|
||||||
"path": "src",
|
"path": "src",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue