Azure-Samples / contoso-real-estate

Intelligent enterprise-grade reference architecture for JavaScript, featuring OpenAI integration, Azure Developer CLI template and Playwright tests.
MIT License
889 stars 528 forks source link

[Chore] (portal): Search page includes call to favorites - which fails 404 #361

Closed diberry closed 1 year ago

diberry commented 1 year ago
  1. Open Dev tools on Search page in portal
  2. Search for tree
  3. 1 property is returned
  4. Dev tools shows 404 for favorites: https://victorious-river-03cbdf403.3.azurestaticapps.net/api/favorites?listingId=5&userId=

Questions:

  1. Why is my userId in the query string?
  2. Is this an issue with the URL being incorrect or the functions app not having the API?
diberry commented 1 year ago

Figured this out. If the property isn't favorited, then the API returns 404. Not really a chore.