Can delete API token from UI
This commit is contained in:
@@ -43,4 +43,16 @@ export class TokensApi {
|
||||
})
|
||||
).data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete a token
|
||||
*/
|
||||
static async Delete(t: Token): Promise<void> {
|
||||
return (
|
||||
await APIClient.exec({
|
||||
uri: `/token/${t.id}`,
|
||||
method: "DELETE",
|
||||
})
|
||||
).data;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user