Can delete API token from UI

This commit is contained in:
2025-11-18 14:51:05 +01:00
parent 02e5575892
commit b5832df746
4 changed files with 114 additions and 6 deletions

View File

@@ -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;
}
}