refiling and api call for search (#11)

* refiling and api call for search

* updating allowed hosts

* update search

* proper api call

* search page working

* navbar

* small fixes

* fix types

---------

Co-authored-by: Sahej Panag <spanag3@gatech.edu>
Co-authored-by: afazio1 <alexa.fazio04@gmail.com>
This commit is contained in:
Sahej Panag
2024-04-20 23:22:45 -04:00
committed by GitHub
parent 5089a36bf7
commit 9e618803ed
12 changed files with 233 additions and 97 deletions

View File

@@ -8,7 +8,7 @@ export const useSessionRedirect = () => {
// Redirect to home if session is defined
useEffect(() => {
if (session !== undefined) {
navigate('/');
navigate('/search');
}
}, [session, navigate])
}