[+] Add upload and download config api endpoints

This commit is contained in:
Hykilpikonna
2021-01-13 13:23:11 -05:00
parent b089a79d85
commit f21778bc11
+22
View File
@@ -45,6 +45,28 @@ class APIs
*/
static let delete = API<String>(loc: "/user/delete")
/**
Upload curent config to the cloud.
## Parameters
- config: The config json
## Returns
Success or error
*/
static let uploadConfig = API<String>(loc: "/backup/upload")
/**
Download the config from the cloud.
## Parameters
None
## Returns
Config Json
*/
static let downloadConfig = API<String>(loc: "/backup/download")
private init() {}
}