improve token

This commit is contained in:
_Bastler 2023-12-15 08:48:31 +01:00
parent 3eb1aa9f8d
commit bd671a987c
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ export class TokensComponent implements OnInit {
} }
} }
removeSecret(secret: String) { removeSecret(secret: string) {
this.itemService.removeSecret(secret).subscribe({ this.itemService.removeSecret(secret).subscribe({
next: (data: any) => { next: (data: any) => {
this.update(); this.update();

View File

@ -19,7 +19,7 @@ export class ItemService {
return this.http.put(environment.apiUrl + "/items", JSON.stringify(secret)); return this.http.put(environment.apiUrl + "/items", JSON.stringify(secret));
} }
removeSecret(secret: String) { removeSecret(secret: string) {
return this.http.request('delete', environment.apiUrl + "/items", { return this.http.request('delete', environment.apiUrl + "/items", {
body: JSON.stringify(secret) body: JSON.stringify(secret)
}); });