Skip to content

Document how to use custom endpoints #1745

Description

@leplatrem

Users wondering if this is the correct way:

const client = new KintoClient(process.env.VUE_APP_API_URL)
const token = localStorage.getItem('token') ?? null
if (token) { client.setHeaders({ Authorization: `JWT ${token}` }) }
...
const path = endpoints.usermanual_info(uid)
client.execute({
      path,
      body: {
        data,
        permissions
      },
      method: 'POST',
      headers: client._headers
    })

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleFor marking issues as stale. Labeled issues will be closed soon if label is not removed.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions