Exemple #1
0
 public DeliveriesController()
 {
     baseAddress = "http://localhost:8082/";
     httpClient  = new System.Net.Http.HttpClient();
     httpClient.DefaultRequestHeaders.Add("Authorization", String.Format("Bearer {0}", TokenFixed.token));
     u = TokenFixed.GetUser();
 }
 public RemboursementsController()
 {
     baseAddress = "http://localhost:8082/";
     httpClient  = new System.Net.Http.HttpClient();
     httpClient.DefaultRequestHeaders.Add("Authorization", String.Format("Bearer {0}", TokenFixed.token));
     httpClient.DefaultRequestHeaders.Accept.Clear();
     httpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
     u = TokenFixed.GetUser();
 }