diff options
Diffstat (limited to 'server/core')
| -rwxr-xr-x | server/core/App.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/core/App.php b/server/core/App.php index 5495a1f..282a1db 100755 --- a/server/core/App.php +++ b/server/core/App.php @@ -33,7 +33,7 @@ class App{ public function setToken($token){
$this->tokenPost = $token;
- $this->tokenClass->loadBackup($his->tokenPost);
+ $this->tokenClass->loadBackup($this->tokenPost);
}
@@ -55,6 +55,11 @@ class App{ $opt = $this->tokenClass->getOptions($service);
return $this->openstack->networkingV2($opt);
break;
+ case "Compute":
+ if($this->tokenPost == NULL) $this->tokenClass->genComputeToken();
+ $opt = $this->tokenClass->getOptions($service);
+ return $this->openstack->computeV2($opt);
+ break;
}
}
@@ -102,4 +107,4 @@ class App{ echo json_encode($this->output);
}
-}
\ No newline at end of file +}
|
