Skip to content

v1 Admin Docs

OnFire124 edited this page Jun 19, 2022 · 1 revision

Admin methods

admin.login(host, key, callback)

Parameter Type Description
host String The URL (aka host) of your panel.
key String The Admin API key of your panel.
callback function The callback of the function,

Source: application/index.ts

admin.fastlogin(host, key)

Parameter Type Description
host String The URL (aka host) of your panel
key String The Admin API key of your panel

Source: application/index.ts

admin.listAllocations(nodeId, page)

Parameter Type Description
nodeId Integer The ID of your node
page Integer The page, can be -1 for unpagination

Source: application/methods/allocations/listAllocations.ts

admin.createAllocation(nodeId, ip, ports)

Parameter Type Description
nodeId Integer The ID of your node
ip String The IP of your allocation
ports String[] The ports you want to add

Source: application/methods/allocations/createAllocation.ts

admin.deleteAllocation(nodeId, allocationId)

Parameter Type Description
nodeId Integer The ID of your node
allocationId Integer The ID of the allocation

Source: application/methods/allocations/deleteAllocation.ts

THIS DOCUMENTATION IS STILL A W.I.P. USE OUR WEBSITE FOR NOW!

Clone this wiki locally