[develop | DONE | CHANGED] adminToolsAPIURL: add property direclty on service file
This commit is contained in:
parent
35cf6ec956
commit
1593ea6ed9
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue