Options
All
  • Public
  • Public/Protected
  • All
Menu

Class default

Hierarchy

  • default

Index

Constructors

Properties

Methods

Constructors

constructor

  • new default(hostURL: string, apiKey: string): default

Properties

admin

admin: default = ...

Admin menu that can be used to manage panel.

client

client: default = ...

Client menu that can help you to manage servers, and others.

hostURL

hostURL: string

Methods

Private adminRequest

  • adminRequest(apiEndpoint: string, options?: RequestInit, contentType?: string): Promise<Response>
  • Parameters

    • apiEndpoint: string
    • Optional options: RequestInit
    • contentType: string = "application/json"

    Returns Promise<Response>

Private clientRequest

  • clientRequest(apiEndpoint: string, options?: RequestInit, contentType?: string): Promise<Response>
  • Parameters

    • apiEndpoint: string
    • Optional options: RequestInit
    • contentType: string = "application/json"

    Returns Promise<Response>

Generated using TypeDoc