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';
@Injectable()
export class DetailService {
private API_PATH: string = environment.apiUrl + '/search';
private API_PATH: string = environment.apiUrl + '/search/' + environment.instanceName;
constructor(private http: HttpClient) { }
......
......@@ -6,7 +6,7 @@ import { environment } from '../../../environments/environment';
@Injectable()
export class AttributeService {
private API_PATH: string = environment.apiUrl + '/metadata';
private API_PATH: string = environment.apiUrl + '/metadata/' + environment.instanceName;
constructor(private http: HttpClient) { }
......
......@@ -6,7 +6,7 @@ import { environment } from '../../../environments/environment';
@Injectable()
export class CriteriaService {
private API_PATH: string = environment.apiUrl + '/metadata';
private API_PATH: string = environment.apiUrl + '/metadata/' + environment.instanceName;
constructor(private http: HttpClient) { }
......
......@@ -7,7 +7,7 @@ import { environment } from '../../../environments/environment';
@Injectable()
export class DatasetService {
private API_PATH: string = environment.apiUrl + '/metadata';
private API_PATH: string = environment.apiUrl + '/metadata/' + environment.instanceName;
constructor(private http: HttpClient) { }
......
......@@ -7,7 +7,7 @@ import { environment } from '../../../environments/environment';
@Injectable()
export class OutputService {
private API_PATH: string = environment.apiUrl + '/metadata';
private API_PATH: string = environment.apiUrl + '/metadata/' + environment.instanceName;
constructor(private http: HttpClient) { }
......
......@@ -6,7 +6,7 @@ import { environment } from '../../../environments/environment';
@Injectable()
export class SearchService {
private API_PATH: string = environment.apiUrl + '/search';
private API_PATH: string = environment.apiUrl + '/search/' + environment.instanceName;
constructor(private http: HttpClient) { }
......
export const environment = {
production: true,
apiUrl: 'https://anis-dev.lam.fr'
production: true,
apiUrl: 'https://anis-dev.lam.fr',
instanceName: 'default'
};
......@@ -5,5 +5,6 @@
export const environment = {
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