Skip to content
Snippets Groups Projects
Commit bb970c1f authored by Bastien's avatar Bastien
Browse files

recommandation sur mon compte

parent 7bac30c8
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,7 @@ let firstname = ref('');
let lastname = ref('');
let birthdate = ref('');
let mesFilmsVus = ref([])
let reco = ref([]);
function getUserInfo() {
const req = fetch('http://localhost:3000/user', { credentials: 'include' }).then(response => {
......@@ -73,6 +74,7 @@ async function fetchSeenMovies() {
onMounted(() => {
getUserInfo();
fetchSeenMovies();
getRecommandation();
});
</script>
......@@ -92,6 +94,8 @@ onMounted(() => {
<button>Changer de mot de passe</button>
</div>
<h1>Recommandations</h1>
<h3>{{ reco }}</h3>
<h1>Films préférés :</h1>
<FilmRow :films="mesFilmsVus"></FilmRow>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment