Can get single account information

This commit is contained in:
2025-04-07 20:53:34 +02:00
parent 72e67d9e91
commit 7c10e3ca5c
5 changed files with 84 additions and 12 deletions

View File

@ -39,7 +39,7 @@ export class TokensApi {
static async GetList(): Promise<Token[]> {
return (
await APIClient.exec({
uri: "/tokens/list",
uri: "/tokens",
method: "GET",
})
).data;
@ -51,7 +51,7 @@ export class TokensApi {
static async Create(t: NewToken): Promise<TokenWithSecret> {
return (
await APIClient.exec({
uri: "/tokens",
uri: "/token",
method: "POST",
jsonData: t,
})
@ -63,7 +63,7 @@ export class TokensApi {
*/
static async Delete(t: Token): Promise<void> {
await APIClient.exec({
uri: `/tokens/${t.id}`,
uri: `/token/${t.id}`,
method: "DELETE",
});
}