mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Refacturation of the notifications route
This commit is contained in:
@@ -29,14 +29,10 @@ export class PublicationsService {
|
||||
}
|
||||
|
||||
GetPublicationFolderById(id:any){
|
||||
const geturl = environment.apiURL + 'presidentialActions';
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("id", id);
|
||||
const geturl = environment.apiURL + 'presidentialActions/'+id;
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
@@ -87,11 +83,10 @@ export class PublicationsService {
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
GetPublicationById(folderId:any, publicationId:any){
|
||||
const geturl = environment.apiURL + 'presidentialActions/'+ folderId +'/posts/'+ publicationId;
|
||||
GetPublicationById( publicationId:any){
|
||||
const geturl = environment.apiURL + 'presidentialActions/posts/'+ publicationId;
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("folderId", folderId);
|
||||
params = params.set("id", publicationId);
|
||||
|
||||
|
||||
@@ -104,6 +99,7 @@ export class PublicationsService {
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
CreatePublication(folderId:any,body:any){
|
||||
const geturl = environment.apiURL + 'presidentialActions/'+folderId+'/posts';
|
||||
let params = new HttpParams();
|
||||
|
||||
Reference in New Issue
Block a user