diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 4ec491b..ea3ca56 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -8,10 +8,15 @@
let serverurl = 'http://192.168.0.105:3000';
let last_page = 1;
let recipes_list = [];
+ let last_recipe;
// First loading
let recipes_p = axios.get(serverurl+"/recipes?page=" + last_page);
recipes_p.then(function (response) {
+ axios.get(serverurl+"/recipe?r_id="+response.data.recipes[0].id).then(function (response) {
+ last_recipe = response.data.recipe;
+ console.log(last_recipe);
+ })
recipes_list = response.data.recipes;
})
.catch(function (error) {
@@ -41,13 +46,27 @@
{#await recipes_p}
{recipe.title}
{/each} @@ -57,4 +76,17 @@