diff options
Diffstat (limited to 'frontend/src/app/_services/models.service.ts')
-rw-r--r-- | frontend/src/app/_services/models.service.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frontend/src/app/_services/models.service.ts b/frontend/src/app/_services/models.service.ts index 016fa9bc..398c7813 100644 --- a/frontend/src/app/_services/models.service.ts +++ b/frontend/src/app/_services/models.service.ts @@ -51,4 +51,12 @@ export class ModelsService { return this.http.get<Model>(`${Configuration.settings.apiURL}/model/byid/${modelId}`, { headers: this.authService.authHeader() }); } + updateModelAccessibleByLink(id: string, acessibleByLink: boolean) { + return this.http.put(`${Configuration.settings.apiURL}/model/updateAccessibleByLink/` + id, acessibleByLink, { headers: this.authService.authHeader(), responseType: 'text' }); + } + + updateModelIsPublic(id: string, isPublic: boolean) { + return this.http.put(`${Configuration.settings.apiURL}/model/updateIsPublic/` + id, isPublic, { headers: this.authService.authHeader(), responseType: 'text' }); + } + } |