The favorites resource lets authenticated users save and manage their preferred bakeries. All endpoints operate on the currently logged-in user’s favorites list and require Firebase authentication.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Panahashi/llms.txt
Use this file to discover all available pages before exploring further.
GET /favorites — fetchFavorites()
Returns all bakeries the authenticated user has marked as a favorite.
Response fields
Returns an array of bakery objects with the same shape asfetchBakeries() (id, name, address, isOpen, openTime, closeTime, rating).
Example
POST /favorites/:bakeryId — toggleFavorite(bakeryId)
Toggles the favorite status of a bakery. If the bakery is not yet favorited it is added; if it is already favorited it is removed.
Request parameters
ID of the bakery to toggle.
Example
GET /favorites/:bakeryId/status — fetchFavoriteStatus(bakeryId)
Returns whether a specific bakery is currently in the authenticated user’s favorites.
Request parameters
ID of the bakery to check.
Response fields
true if the bakery is in the user’s favorites, false otherwise.Example
DELETE /favorites/:bakeryId — removeFavorite(bakeryId)
Removes a bakery from the authenticated user’s favorites. Does nothing if the bakery was not already favorited.
Request parameters
ID of the bakery to remove from favorites.