Skip to content

Commit e03e51d

Browse files
[fix] Changing backups to snapshots on Endpoints
1 parent 14402cf commit e03e51d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

squarecloud/http/endpoints.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class Endpoint:
99
'APP_DATA': {'METHOD': 'GET', 'PATH': '/apps/{app_id}'},
1010
'APP_STATUS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/status'},
1111
'ALL_APPS_STATUS': {'METHOD': 'GET', 'PATH': '/apps/status'},
12-
'ALL_BACKUPS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/backups'},
12+
'ALL_BACKUPS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/snapshots'},
1313
'LOGS': {'METHOD': 'GET', 'PATH': '/apps/{app_id}/logs'},
1414
'START': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/start'},
1515
'STOP': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/stop'},
1616
'RESTART': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/restart'},
17-
'BACKUP': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/backups'},
17+
'BACKUP': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/snapshots'},
1818
'COMMIT': {'METHOD': 'POST', 'PATH': '/apps/{app_id}/commit'},
1919
'DELETE_APP': {'METHOD': 'DELETE', 'PATH': '/apps/{app_id}'},
2020
'UPLOAD_APP': {'METHOD': 'POST', 'PATH': '/apps'},
@@ -148,7 +148,7 @@ def restart(cls) -> Endpoint:
148148
def backup(cls) -> Endpoint:
149149
"""
150150
Returns an Endpoint object that represents the
151-
/apps/{app_id}/backups endpoint.
151+
/apps/{app_id}/snapshots endpoint.
152152
"""
153153
return cls('BACKUP')
154154

@@ -244,7 +244,7 @@ def custom_domain(cls) -> Endpoint:
244244
def all_backups(cls) -> Endpoint:
245245
"""
246246
Returns an Endpoint object that represents the
247-
/apps/{app_id}/backups endpoint.
247+
/apps/{app_id}/snapshots endpoint.
248248
"""
249249
return cls('ALL_BACKUPS')
250250

0 commit comments

Comments
 (0)