Skip to content

Refactor meal fetching and simplify FoodCard labels#2

Draft
marvin-heinrich wants to merge 2 commits intoAET-DevOps25:mainfrom
marvin-heinrich:feature/view-daily-menu
Draft

Refactor meal fetching and simplify FoodCard labels#2
marvin-heinrich wants to merge 2 commits intoAET-DevOps25:mainfrom
marvin-heinrich:feature/view-daily-menu

Conversation

@marvin-heinrich
Copy link
Copy Markdown

Moved meal fetching logic to a separate function and added onMount data fetch in +page.ts. Simplified label rendering in FoodCard.svelte by condensing Icon usage. Updated CanteenController to always return 200 OK with an empty list instead of 204 No Content for empty meal results.

Moved meal fetching logic to a separate function and added onMount data fetch in +page.ts. Simplified label rendering in FoodCard.svelte by condensing Icon usage. Updated CanteenController to always return 200 OK with an empty list instead of 204 No Content for empty meal results.
@marvin-heinrich marvin-heinrich marked this pull request as draft July 25, 2025 18:30
@marvin-heinrich marvin-heinrich marked this pull request as ready for review July 25, 2025 18:31
@marvin-heinrich marvin-heinrich marked this pull request as draft July 25, 2025 18:31
Updated getTodayMeals endpoint to return HTTP 204 No Content when the list of today's meals is empty, instead of returning an empty list with HTTP 200. This improves API clarity for clients.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant