Skip to content
Snippets Groups Projects
Commit 3748f386 authored by Baptiste Toulemonde's avatar Baptiste Toulemonde
Browse files

conf enfironment prod vs dev

parent 4a22705f
No related branches found
No related tags found
1 merge request!3Added mapping to DTO
......@@ -4,9 +4,11 @@ import { Observable } from 'rxjs';
import { TokenStorageService } from './token-storage.service';
import { map } from "rxjs/operators";
import { AppConfiguration } from 'src/app/AppConfiguration';
import { env } from 'process';
import { environment } from 'src/environments/environment';
const AUTH_API = "https://f2ds.eosc-pillar.eu/harvester/auth";
const AUTH_API = environment.smartharvesterUrl;
const F2DSAPI = "https://f2ds.eosc-pillar.eu"
const httpOptions = {
headers: new HttpHeaders({ 'Content-Type': 'application/json' })
......
import { Injectable } from '@angular/core';
import { BehaviorSubject, Observable } from 'rxjs';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { environment } from 'src/environments/environment.prod';
@Injectable({
providedIn: 'root'
})
export class ParseXmlService {
blazePath = "https://f2ds.eosc-pillar.eu/blazegraph/sparql"
blazePath = environment.fdpUrl+ "/blazegraph/sparql";
constructor(private http:HttpClient) { }
......
export const environment = {
production: true,
apiurl: 'f2ds.eosc-pillar.eu',
smartharvesterUrl: 'https://f2ds.eosc-pillar.eu',
fdpUrl: 'https://f2ds.eosc-pillar.eu'
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment