import { Injectable } from '@angular/core';
import { HttpHeaders} from  '@angular/common/http';

@Injectable({
  providedIn: 'root'
})
export class HttpClientDataService {

  //LocalHost
  //BASE_ADDRESS:  string  =  'http://localhost:8080/stman';

  //Test
  BASE_ADDRESS:  string  =  'http://aimsviluppo.aimconsulting.it:8085/stman';

  //Produzione
  //BASE_ADDRESS:  string  =  'http://5.8.104.230:8080/stman';

  P2PTokenUrl: string = "https://www.2p2.it/auth-request";

  P2PSingleSignOnUrl: string = "https://www.2p2.it/?token=";

  httpFormData = {
    headers: new HttpHeaders({
      'Content-Type':  'multipart/form-data'
    })
  };

  httpOptions = {
    headers: new HttpHeaders({
      'Content-Type':  'application/x-www-form-urlencoded'
    })
  };

  httpOptionsJson = {
    headers: new HttpHeaders({
      'Content-Type':  'application/json'
    })
  };

  constructor() { }
}
