about summary refs log tree commit diff
path: root/frontend
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-11-05 01:00:05 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-11-05 17:24:54 +0100
commitf2b946f1af005f6be15efd67f5b1508a30fa0c92 (patch)
tree5a5463bb11aaa7ac284e1c6c514832d53767a789 /frontend
parentIndexer: Actix: Use the same service handler with multiple routes (diff)
downloadOSSE-f2b946f1af005f6be15efd67f5b1508a30fa0c92.tar.gz
OSSE-f2b946f1af005f6be15efd67f5b1508a30fa0c92.tar.bz2
OSSE-f2b946f1af005f6be15efd67f5b1508a30fa0c92.zip
Indexer+Frontend: Integrate with actix
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/main.rs b/frontend/src/main.rs
index 6732466..29bdd71 100644
--- a/frontend/src/main.rs
+++ b/frontend/src/main.rs
@@ -17,10 +17,10 @@ enum Route {
 fn switch_routes(routes: Route) -> Html {
     match routes {
         Route::OSSEHome | Route::OSSEHomeEmptySearch => html! {
-            <OSSE api_endpoint={"http://127.0.0.1:4444"} initial_search_query={None as Option<String>} />
+            <OSSE api_endpoint={"/api"} initial_search_query={None as Option<String>} />
         },
         Route::OSSESearch { query } => html! {
-            <OSSE api_endpoint={"http://127.0.0.1:4444"} initial_search_query={Some(query)} />
+            <OSSE api_endpoint={"/api"} initial_search_query={Some(query)} />
         },
     }
 }