From e6723d9ebceacc24cec06021f3e8d1b02f2ef388 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 20 May 2023 17:49:13 -0400 Subject: [PATCH] Add new backup routes --- app/classes/web/routes/api/api_handlers.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/classes/web/routes/api/api_handlers.py b/app/classes/web/routes/api/api_handlers.py index 29ee02c5..8e4b7ac3 100644 --- a/app/classes/web/routes/api/api_handlers.py +++ b/app/classes/web/routes/api/api_handlers.py @@ -26,6 +26,12 @@ from app.classes.web.routes.api.servers.server.stdin import ApiServersServerStdi from app.classes.web.routes.api.servers.server.tasks.index import ( ApiServersServerTasksIndexHandler, ) +from app.classes.web.routes.api.servers.server.backups.index import ( + ApiServersServerBackupsIndexHandler, +) +from app.classes.web.routes.api.servers.server.backups.backup.index import ( + ApiServersServerBackupsBackupIndexHandler, +) from app.classes.web.routes.api.servers.server.tasks.task.children import ( ApiServersServerTasksTaskChildrenHandler, ) @@ -112,6 +118,16 @@ def api_handlers(handler_args): ApiServersServerIndexHandler, handler_args, ), + ( + r"/api/v2/servers/([0-9]+)/backups/?", + ApiServersServerBackupsIndexHandler, + handler_args, + ), + ( + r"/api/v2/servers/([0-9]+)/backups/backup/?", + ApiServersServerBackupsBackupIndexHandler, + handler_args, + ), ( r"/api/v2/servers/([0-9]+)/tasks/?", ApiServersServerTasksIndexHandler,