improve token
This commit is contained in:
parent
3eb1aa9f8d
commit
bd671a987c
@ -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();
|
||||||
|
@ -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)
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user