Fix Add Tenant Image and Delete Tenant URL (#155)

This commit is contained in:
Daniel Valdivia
2020-06-04 11:00:28 -07:00
committed by GitHub
parent 4edfeb22c6
commit d8e6bd7f4a
3 changed files with 96 additions and 72 deletions

File diff suppressed because one or more lines are too long

View File

@@ -90,6 +90,7 @@ const AddTenant = ({
.invoke("POST", `/api/v1/tenants`, {
name: tenantName,
service_name: tenantName,
image: imageName,
enable_ssl: enableSSL,
enable_mcs: enableMCS,
access_key: accessKey,

View File

@@ -54,7 +54,7 @@ const DeleteTenant = ({
useEffect(() => {
if (deleteLoading) {
api
.invoke("DELETE", `/api/v1/clusters/${selectedTenant}`)
.invoke("DELETE", `/api/v1/tenants/${selectedTenant}`)
.then(() => {
setDeleteLoading(false);
setDeleteError("");