Skip to content

Commit 636bdc1

Browse files
author
Leon Hausdorf
committed
fix: changed the routes for update and server backups
1 parent 74705a3 commit 636bdc1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Api/Servers/SolusServerBackups.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ private static function getClient(): SolusClient {
1818
* @return array
1919
*/
2020
public static function list(int $server_id): array {
21-
return self::getClient()->get("server/$server_id/backups");
21+
return self::getClient()->get("/server/$server_id/backups");
2222
}
2323

2424
/**
@@ -29,7 +29,7 @@ public static function list(int $server_id): array {
2929
* @return array
3030
*/
3131
public function create(int $server_id): array {
32-
return self::getClient()->post("server/$server_id/backups");
32+
return self::getClient()->post("/server/$server_id/backups");
3333
}
3434

3535
}

src/Api/SolusUpdates.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ private static function getClient(): SolusClient {
1515
* @return array
1616
*/
1717
public static function list(): array {
18-
return self::getClient()->get('updates');
18+
return self::getClient()->get('/updates');
1919
}
2020

2121
/**
@@ -25,7 +25,7 @@ public static function list(): array {
2525
* @return array
2626
*/
2727
public static function update(): array {
28-
return self::getClient()->post('updates');
28+
return self::getClient()->post('/updates');
2929
}
3030

3131
}

0 commit comments

Comments
 (0)