[CST-12454] getting inbox url from rest for notify info page

This commit is contained in:
Alisa Ismailati
2023-10-31 11:49:35 +01:00
parent efcd4d335d
commit efd2d4c97c
3 changed files with 16 additions and 31 deletions

View File

@@ -2,7 +2,6 @@ import { Injectable } from '@angular/core';
import { getFirstSucceededRemoteData, getRemoteDataPayload } from '../../shared/operators';
import { ConfigurationDataService } from '../../data/configuration-data.service';
import { map, Observable } from 'rxjs';
import { DefaultAppConfig } from '../../../../config/default-app-config';
import { ConfigurationProperty } from '../../shared/configuration-property.model';
@Injectable({
@@ -44,18 +43,6 @@ export class NotifyInfoService {
);
}
getCoarLdnRestApiUrl(): string {
const appConfig = new DefaultAppConfig();
const restConfig = appConfig.rest;
const ssl = restConfig.ssl;
const host = restConfig.host;
const port = restConfig.port;
const namespace = restConfig.nameSpace;
return `${ssl ? 'https' : 'http'}://${host}:${port}${namespace}`;
}
/**
* Method to get the relation link for the inbox
* @returns the relation link for the inbox