Function jsonRequest

  • Parameters

    • endpoint: string
    • Optional token: string
    • method: HttpMethod = 'GET'

    Returns Promise<any>