You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On lines 12-14 of this file you’re handling the endpoints for when a user searches for a quote category. I could be mistaken, but isn’t line 17 doing pretty much the same thing, minus the redirect?
In your script.js file (public/js/script.js), instead of making the fetch request to "/quotes/searchcategory/${category}", perhaps you could make it to "/quotes/category/:category” and eliminate the redirect?
The text was updated successfully, but these errors were encountered:
On lines 12-14 of this file you’re handling the endpoints for when a user searches for a quote category. I could be mistaken, but isn’t line 17 doing pretty much the same thing, minus the redirect?
In your script.js file (public/js/script.js), instead of making the fetch request to "/quotes/searchcategory/${category}", perhaps you could make it to "/quotes/category/:category” and eliminate the redirect?
The text was updated successfully, but these errors were encountered: