Début d'ajout pour la gestion du login
This commit is contained in:
@@ -10,12 +10,12 @@ import { JumpResp, JumpReq } from '../models/jump';
|
||||
export class JumpService {
|
||||
|
||||
private readonly headers = new HttpHeaders({
|
||||
'Access-Control-Allow-Origin': environment.urlApi
|
||||
'Access-Control-Allow-Origin': environment.apiUrl
|
||||
});
|
||||
constructor(private http: HttpClient, private dateService: DateService) { }
|
||||
|
||||
public getListOfJumps(): Observable<Array<JumpResp>> {
|
||||
return this.http.get<Array<JumpResp>>(`${environment.urlApi}/api/Jump`, {
|
||||
return this.http.get<Array<JumpResp>>(`${environment.apiUrl}/api/Jump`, {
|
||||
headers: this.headers
|
||||
})
|
||||
.pipe(
|
||||
@@ -98,7 +98,7 @@ export class JumpService {
|
||||
};
|
||||
|
||||
this.http
|
||||
.post(`${environment.urlApi}/api/Jump`, bodyNewjump, {
|
||||
.post(`${environment.apiUrl}/api/Jump`, bodyNewjump, {
|
||||
headers: this.headers
|
||||
})
|
||||
.subscribe(data => console.log(data));
|
||||
|
||||
Reference in New Issue
Block a user