From f21778bc11a67aa856cf81b350681fd36764e9e7 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 13 Jan 2021 13:23:11 -0500 Subject: [PATCH] [+] Add upload and download config api endpoints --- ProjectClock/Net.swift | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/ProjectClock/Net.swift b/ProjectClock/Net.swift index 42d050f..ede89db 100644 --- a/ProjectClock/Net.swift +++ b/ProjectClock/Net.swift @@ -45,6 +45,28 @@ class APIs */ static let delete = API(loc: "/user/delete") + /** + Upload curent config to the cloud. + + ## Parameters + - config: The config json + + ## Returns + Success or error + */ + static let uploadConfig = API(loc: "/backup/upload") + + /** + Download the config from the cloud. + + ## Parameters + None + + ## Returns + Config Json + */ + static let downloadConfig = API(loc: "/backup/download") + private init() {} }