[develop | DONE | CHANGED] adminToolsAPIURL: add property direclty on service file

This commit is contained in:
Alex Martzios 2024-09-13 09:59:24 +03:00
parent 35cf6ec956
commit 1593ea6ed9
1 changed files with 4 additions and 4 deletions

View File

@ -53,12 +53,12 @@ export class PluginsService {
getPluginTemplatesByPage(pid: string, pageId: string) {
return this.http.get<Array<PluginTemplate>>(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<Array<Plugin>>(/*(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<Array<PluginTemplate>>(/*(properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url) + (properties.forceCacheReload?'&forceReload=true':'')) :*/ url);
}