UVicMartletplace / martletplace

Recreating FB Marketplace for Students - UVic SENG499 Capstone Project
1 stars 0 forks source link

Make Return Search Results API Update Search History #189

Closed GDeane closed 6 days ago

GDeane commented 1 week ago

Feature Description

When the /api/search endpoint is called, the user id and query string should be inserted into the user_searches table.

relates: #50

Problem You're Trying to Solve

Once user searches are stored in the user_searches table, /api/user/search-history should be callable from the frontend. The most recent few rows of the user_searches table can be returned in descending timestamp order from the backend.

Related External Resources