Project

General

Profile

« Previous | Next » 

Revision 50469

continued with compatibility validate

View differences:

validator.service.ts
25 25

  
26 26
  /* returns true if there is a repository containing the identifier */
27 27
  identifyRepository(identifier: string): Observable<boolean> {
28
    let url = `${this.apiUrl}/validator/identifyRepository/${identifier}`;
28
    let url = `${this.apiUrl}/validator/identifyRepository/{url}?url=${identifier}`;
29 29
    console.log(`knocking on: ${url}`);
30 30
    return this.http.get(url)
31
      .map(res => console.log(res))
31
      .map(res => <boolean>res.json())
32 32
      .catch(this.handleError);
33 33
  }
34 34

  

Also available in: Unified diff