Working with encryption!

This commit is contained in:
Isaac Grynsztein
2018-01-16 11:18:41 -05:00
parent 162425b702
commit 917235189a
8 changed files with 77 additions and 60 deletions

View File

@@ -12,15 +12,22 @@ export class PostsService {
audioFolder: string = "";
videoFolder: string = "";
startPath: string = "http://localhost:17442/";
startPathSSL: string = "https://localhost:17442/"
handShakeComplete: boolean = false;
constructor(private http: Http){
console.log('PostsService Initialized...');
}
startHandshake(): Observable<string>
startHandshake(url: string): Observable<string>
{
return this.http.get(this.startPath + "url")
return this.http.get(url + "geturl")
.map(res => res.json());
}
startHandshakeSSL(url: string): Observable<string>
{
return this.http.get(url + "geturl")
.map(res => res.json());
}
@@ -57,6 +64,14 @@ export class PostsService {
return this.http.post(this.path + "mp4fileexists",{name: name})
.map(res => res.json());
}
loadNavItems() {
return this.http.get("../../backend/config/default.json")
.map(res => res.json());
//This is optional, you can remove the last line
// if you don't want to log loaded json in
// console.
}
}