Added new methods to facilitate server-side download management

This commit is contained in:
Isaac Grynsztein
2020-04-18 01:31:32 -04:00
parent 4617362270
commit d887380fd1
2 changed files with 40 additions and 0 deletions

View File

@@ -215,6 +215,11 @@ export class PostsService {
return this.http.post(this.path + 'getAllSubscriptions', {}, this.httpOptions);
}
// current downloads
getCurrentDownloads() {
return this.http.get(this.path + 'downloads', this.httpOptions);
}
// updates the server to the latest version
updateServer(tag) {
return this.http.post(this.path + 'updateServer', {tag: tag}, this.httpOptions);