From 3e4458c9dc2cf26f288345ad635dbb2883a16867 Mon Sep 17 00:00:00 2001
From: FazCodeFR <30906528+FazCodeFR@users.noreply.github.com>
Date: Fri, 26 Apr 2024 15:26:48 +0200
Subject: [PATCH] feature/favoris
---
src/app/app.module.ts | 8 ++
.../animaux-list/animaux-list.component.html | 26 +++++--
.../animaux-list/animaux-list.component.ts | 73 ++++++++++++++-----
.../components/profil/profil.component.html | 4 +-
src/app/interfaces/interfaces.ts | 2 +-
src/app/services/app.service.ts | 18 ++++-
6 files changed, 103 insertions(+), 28 deletions(-)
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 9a2c1ce..bb3f9ec 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -88,6 +88,14 @@ import { ToastModule } from 'primeng/toast';
httpInterceptor: {
allowedList: [
// Tous les post, put, delete et patch sont protégés par le token
+ {
+ uri: `${environment.urlAPI}/favoris`,
+ httpMethod: HttpMethod.Get,
+ },
+ {
+ uri: `${environment.urlAPI}/chats/favoris`,
+ httpMethod: HttpMethod.Get,
+ },
{
uri: `${environment.urlAPI}/*`,
httpMethod: HttpMethod.Post,
diff --git a/src/app/components/animaux/animaux-list/animaux-list.component.html b/src/app/components/animaux/animaux-list/animaux-list.component.html
index 9993d0f..d8ab614 100644
--- a/src/app/components/animaux/animaux-list/animaux-list.component.html
+++ b/src/app/components/animaux/animaux-list/animaux-list.component.html
@@ -1,6 +1,6 @@