1
0
Fork 0

feat(org): Better handling of apikeys

This commit is contained in:
joostdecock 2023-08-21 16:14:58 +02:00
parent 1c4cc4920a
commit 6e87493440
11 changed files with 350 additions and 231 deletions

View file

@ -204,6 +204,13 @@ Backend.prototype.createApikey = async function (data) {
return responseHandler(await api.post(`/apikeys/jwt`, data, this.auth), 201)
}
/*
* Get API key
*/
Backend.prototype.getApikey = async function (id) {
return responseHandler(await api.get(`/apikeys/${id}/jwt`, this.auth))
}
/*
* Get API keys
*/