Get the jump type only for the tunnel
This commit is contained in:
@@ -14,11 +14,16 @@ export class JumpTypeService extends BaseService {
|
||||
super();
|
||||
}
|
||||
|
||||
public getListOfJumpTypes(): Observable<Array<JumpTypeResp>> {
|
||||
let callToApi = this.http.get<Array<JumpTypeResp>>(`${this.apiUrl}/JumpType`, { headers: this.headers });
|
||||
public getListOfJumpTypes(onlyTunnel: boolean = false): Observable<Array<JumpTypeResp>> {
|
||||
let callToApi = this.http.get<Array<JumpTypeResp>>(`${this.apiUrl}/JumpType${onlyTunnel ? "/tunnel" : ""}`, { headers: this.headers });
|
||||
return this.serviceCacheApi.get<Array<JumpTypeResp>>(CacheApiKey.JumpType, callToApi);
|
||||
}
|
||||
|
||||
public getListOfJumpTypesForTunnel(): Observable<Array<JumpTypeResp>> {
|
||||
let callToApi = this.http.get<Array<JumpTypeResp>>(`${this.apiUrl}/JumpType/tunnel`, { headers: this.headers });
|
||||
return this.serviceCacheApi.get<Array<JumpTypeResp>>(CacheApiKey.TunnelJumpType, callToApi);
|
||||
}
|
||||
|
||||
public addJumpType(jumptypetName: string) {
|
||||
const bodyJumpType: JumpTypeReq = {
|
||||
id: 0,
|
||||
|
||||
Reference in New Issue
Block a user