Commit d3d872f5 authored by François Agneray's avatar François Agneray
Browse files

Merge branch '56-update-instances-multiples' into 'develop'

Resolve "Update instances multiples"

Closes #56

See merge request !48
parents 5225a0a2 c1c0494f
Pipeline #1470 passed with stages
in 7 minutes and 25 seconds
...@@ -5,7 +5,7 @@ import { environment } from '../../../environments/environment'; ...@@ -5,7 +5,7 @@ import { environment } from '../../../environments/environment';
@Injectable() @Injectable()
export class DetailService { export class DetailService {
private API_PATH: string = environment.apiUrl + '/search'; private API_PATH: string = environment.apiUrl + '/search/' + environment.instanceName;
constructor(private http: HttpClient) { } constructor(private http: HttpClient) { }
......
...@@ -6,7 +6,7 @@ import { environment } from '../../../environments/environment'; ...@@ -6,7 +6,7 @@ import { environment } from '../../../environments/environment';
@Injectable() @Injectable()
export class AttributeService { export class AttributeService {
private API_PATH: string = environment.apiUrl + '/metadata'; private API_PATH: string = environment.apiUrl + '/metadata/' + environment.instanceName;
constructor(private http: HttpClient) { } constructor(private http: HttpClient) { }
......
...@@ -6,7 +6,7 @@ import { environment } from '../../../environments/environment'; ...@@ -6,7 +6,7 @@ import { environment } from '../../../environments/environment';
@Injectable() @Injectable()
export class CriteriaService { export class CriteriaService {
private API_PATH: string = environment.apiUrl + '/metadata'; private API_PATH: string = environment.apiUrl + '/metadata/' + environment.instanceName;
constructor(private http: HttpClient) { } constructor(private http: HttpClient) { }
......
...@@ -7,7 +7,7 @@ import { environment } from '../../../environments/environment'; ...@@ -7,7 +7,7 @@ import { environment } from '../../../environments/environment';
@Injectable() @Injectable()
export class DatasetService { export class DatasetService {
private API_PATH: string = environment.apiUrl + '/metadata'; private API_PATH: string = environment.apiUrl + '/metadata/' + environment.instanceName;
constructor(private http: HttpClient) { } constructor(private http: HttpClient) { }
......
...@@ -7,7 +7,7 @@ import { environment } from '../../../environments/environment'; ...@@ -7,7 +7,7 @@ import { environment } from '../../../environments/environment';
@Injectable() @Injectable()
export class OutputService { export class OutputService {
private API_PATH: string = environment.apiUrl + '/metadata'; private API_PATH: string = environment.apiUrl + '/metadata/' + environment.instanceName;
constructor(private http: HttpClient) { } constructor(private http: HttpClient) { }
......
...@@ -6,7 +6,7 @@ import { environment } from '../../../environments/environment'; ...@@ -6,7 +6,7 @@ import { environment } from '../../../environments/environment';
@Injectable() @Injectable()
export class SearchService { export class SearchService {
private API_PATH: string = environment.apiUrl + '/search'; private API_PATH: string = environment.apiUrl + '/search/' + environment.instanceName;
constructor(private http: HttpClient) { } constructor(private http: HttpClient) { }
......
export const environment = { export const environment = {
production: true, production: true,
apiUrl: 'https://anis-dev.lam.fr' apiUrl: 'https://anis-dev.lam.fr',
instanceName: 'default'
}; };
...@@ -5,5 +5,6 @@ ...@@ -5,5 +5,6 @@
export const environment = { export const environment = {
production: false, production: false,
apiUrl: 'http://localhost:8080' apiUrl: 'http://localhost:8080',
instanceName: 'default'
}; };
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment