summaryrefslogtreecommitdiff
path: root/src/api/routes/datacenters.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes/datacenters.js')
-rw-r--r--src/api/routes/datacenters.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/api/routes/datacenters.js b/src/api/routes/datacenters.js
index df621a62..20cf4935 100644
--- a/src/api/routes/datacenters.js
+++ b/src/api/routes/datacenters.js
@@ -1,26 +1,26 @@
-import {sendRequest} from "../index";
-import {getById} from "./util";
+import { sendRequest } from "../index";
+import { getById } from "./util";
export function getDatacenter(datacenterId) {
- return getById("/datacenters/{datacenterId}", {datacenterId});
+ return getById("/datacenters/{datacenterId}", { datacenterId });
}
export function getRoomsOfDatacenter(datacenterId) {
- return getById("/datacenters/{datacenterId}/rooms", {datacenterId});
+ return getById("/datacenters/{datacenterId}/rooms", { datacenterId });
}
export function addRoomToDatacenter(room) {
- return sendRequest({
- path: "/datacenters/{datacenterId}/rooms",
- method: "POST",
- parameters: {
- body: {
- room
- },
- path: {
- datacenterId: room.datacenterId
- },
- query: {}
- }
- });
+ return sendRequest({
+ path: "/datacenters/{datacenterId}/rooms",
+ method: "POST",
+ parameters: {
+ body: {
+ room
+ },
+ path: {
+ datacenterId: room.datacenterId
+ },
+ query: {}
+ }
+ });
}