diff --git a/src/util/API.js b/src/util/API.js index 3fb7d159fd31176b70cac34ebb3b7cfa6b5634b6..ee3458c082ae8b0f5e307859dc72fe296e0f8d6f 100644 --- a/src/util/API.js +++ b/src/util/API.js @@ -501,6 +501,10 @@ export const API = { }, + /** + * Gets the week menu to the account currently logged in + * @returns a week menu objectt + */ getWeekMenu: () => { const authStore = useAuthStore(); return axios.get(`${import.meta.env.VITE_BACKEND_URL}/weekmenu`, { @@ -515,6 +519,11 @@ export const API = { }); }, + /** + * Generates a week menu to a specified number of people + * @param numberOfPeople the number of people that will eat + * @returns a week menu object + */ generateWeekMenu: (numberOfPeople) => { const authStore = useAuthStore(); return axios.put(`${import.meta.env.VITE_BACKEND_URL}/weekmenu/${numberOfPeople}`, "", { @@ -531,4 +540,4 @@ export const API = { } -} \ No newline at end of file +}