-
Notifications
You must be signed in to change notification settings - Fork 1
Files
/
Copy pathadoption.service.ts
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) { }
16
17
18
19
createRequest(Adoption:Object): Observable<Object>{
console.log("hola");
return this.http.post(BASE_URL,Adoption);
20
21
}
22
23
24
}