commencement de la 'page search'

This commit is contained in:
MiharyR 2021-10-27 01:48:30 +02:00
parent 5f4ecfc7b3
commit 58d80d1a6b
47 changed files with 889 additions and 84 deletions

View file

@ -0,0 +1,18 @@
import { Injectable } from '@angular/core';
import {HttpClient} from "@angular/common/http";
import {environment} from "../../../../environments/environment";
import {Observable} from "rxjs";
@Injectable({
providedIn: 'root'
})
export class MessageService
{
constructor( private http: HttpClient ) { }
sendMessage( url, data ): Observable<any>
{
const urlComplete = environment.debutUrl + url ;
return this.http.post<any>( urlComplete, data, {withCredentials: true} );
}
}