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.
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