From 1593ea6ed9e62931800b62f4d4d4787228043d51 Mon Sep 17 00:00:00 2001 From: Alex Martzios Date: Fri, 13 Sep 2024 09:59:24 +0300 Subject: [PATCH] [develop | DONE | CHANGED] adminToolsAPIURL: add property direclty on service file --- services/plugins.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/plugins.service.ts b/services/plugins.service.ts index e50d98d2..4c5fc032 100644 --- a/services/plugins.service.ts +++ b/services/plugins.service.ts @@ -53,12 +53,12 @@ export class PluginsService { getPluginTemplatesByPage(pid: string, pageId: string) { return this.http.get>(properties.adminToolsAPIURL + properties.adminToolsPortalType + '/' + pid + '/pluginTemplates/page/' + pageId); } - getPluginsByPageRoute(api:string, pid:string, route:string){ - let url = api + 'community/' +pid+'/plugins/page/route?route=' + route; + getPluginsByPageRoute(pid:string, route:string){ + let url = properties.adminToolsAPIURL + 'community/' +pid+'/plugins/page/route?route=' + route; return this.http.get>(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) : */url); } - getPluginTemplatesByPageRoute(api:string, pid:string, route:string){ - let url = api + 'community/' + pid + '/pluginTemplates/page/route?route=' + route; + getPluginTemplatesByPageRoute(pid:string, route:string){ + let url = properties.adminToolsAPIURL + 'community/' + pid + '/pluginTemplates/page/route?route=' + route; return this.http.get>(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) :*/ url); }