mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
jwt implemented
This commit is contained in:
@@ -37,7 +37,7 @@ export class PublicationsService {
|
||||
setHeader () {
|
||||
this.loggeduser = SessionStore.user;
|
||||
this.headers = new HttpHeaders();;
|
||||
this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey);
|
||||
this.headers = this.headers.set('Authorization', 'Bearer ' + SessionStore.user.Authorization);
|
||||
}
|
||||
|
||||
GetPublicationFolderList(){
|
||||
@@ -218,7 +218,8 @@ GetIdsPublicationNext(id:any){
|
||||
//my last tries
|
||||
|
||||
CreatePublication(folderId:any,body:any){
|
||||
const geturl = environment.apiURL + 'presidentialActions/'+folderId+'/posts';
|
||||
console.log('body publi', body)
|
||||
const geturl = environment.apiURL + 'presidentialActions/'+folderId+'/v2/posts';
|
||||
let params = new HttpParams();
|
||||
params = params.set("folderId", folderId);
|
||||
let options = {
|
||||
|
||||
Reference in New Issue
Block a user