Skip to content

Files

Latest commit

 

History

History
24 lines (16 loc) · 555 Bytes

adoption.service.ts

File metadata and controls

24 lines (16 loc) · 555 Bytes
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { Injectable } from '@angular/core';
import { environment } from 'src/environments/environment';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { catchError } from 'rxjs/operators';
import { Observable } from 'rxjs';
const BASE_URL = environment.apiBase + '/adoptions/';
@Injectable({
providedIn: 'root'
})
export class AdoptionService {
constructor(private http: HttpClient) { }
Apr 18, 2020
Apr 18, 2020
16
17
18
19
createRequest(Adoption:Object): Observable<Object>{
console.log("hola");
return this.http.post(BASE_URL,Adoption);
20
21
}
Apr 18, 2020
Apr 18, 2020
22
23
24
}