Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crenshaw <[email protected]>
  • Loading branch information
crenshaw-dev committed Jan 19, 2024
1 parent 8dc59b3 commit c1ef1ee
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/app/shared/services/accounts-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export class AccountsService {
}

public deleteToken(name: string, id: string): Promise<any> {
return requests.delete(`/account/${name}/token/${id}`);
return requests.delete(`/account/${name}/token/${id}`)
.set('Content-Type', 'application/json')
.send();
}

public canI(resource: string, action: string, subresource: string): Promise<boolean> {
Expand Down
1 change: 1 addition & 0 deletions ui/src/app/shared/services/cert-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class CertificatesService {
return requests
.delete('/certificates')
.query({hostNamePattern: serverName, certType, certSubType})
.set('Content-Type', 'application/json')
.send()
.then(res => res.body as models.RepoCert);
}
Expand Down
1 change: 1 addition & 0 deletions ui/src/app/shared/services/clusters-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export class ClustersService {
public delete(server: string): Promise<models.Cluster> {
return requests
.delete(`/clusters/${encodeURIComponent(server)}`)
.set('Content-Type', 'application/json')
.send()
.then(res => res.body as models.Cluster);
}
Expand Down
1 change: 1 addition & 0 deletions ui/src/app/shared/services/gpgkey-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export class GnuPGPublicKeyService {
return requests
.delete('/gpgkeys')
.query({keyID})
.set('Content-Type', 'application/json')
.send()
.then(res => res.body as models.GnuPGPublicKey);
}
Expand Down
1 change: 1 addition & 0 deletions ui/src/app/shared/services/repo-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export class RepositoriesService {
public delete(url: string): Promise<models.Repository> {
return requests
.delete(`/repositories/${encodeURIComponent(url)}`)
.set('Content-Type', 'application/json')
.send()
.then(res => res.body as models.Repository);
}
Expand Down
1 change: 1 addition & 0 deletions ui/src/app/shared/services/repocreds-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export class RepoCredsService {
public delete(url: string): Promise<models.RepoCreds> {
return requests
.delete(`/repocreds/${encodeURIComponent(url)}`)
.set('Content-Type', 'application/json')
.send()
.then(res => res.body as models.RepoCreds);
}
Expand Down

0 comments on commit c1ef1ee

Please sign in to comment.