Skip to content

Commit cc89bf4

Browse files
authored
feat: Replace Usuba UI w/ Lookslike Prototype (#75)
1 parent dbfba75 commit cc89bf4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

rust/usuba/src/routes/ui.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rust_embed::Embed;
88
use crate::{UsubaError, UsubaState};
99

1010
#[derive(Embed)]
11-
#[folder = "../../typescript/packages/usuba-ui/dist"]
11+
#[folder = "../../typescript/packages/lookslike-prototype/dist"]
1212
struct Asset;
1313

1414
pub struct StaticFile<T>(pub T);
@@ -70,5 +70,5 @@ pub async fn upstream_index(state: State<UsubaState>, request: Request) -> impl
7070
}
7171

7272
pub async fn ui_index(state: State<UsubaState>, request: Request) -> impl IntoResponse {
73-
ui_file("/$.html".parse::<Uri>().unwrap(), state, request).await
73+
ui_file("/index.html".parse::<Uri>().unwrap(), state, request).await
7474
}

rust/usuba/src/serve.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ pub async fn serve(listener: TcpListener, upstream: Option<Uri>) -> Result<(), U
5050
.route("/api/v0/module", post(build_module))
5151
.route("/api/v0/module/:id", get(retrieve_module))
5252
.route("/api/v0/recipe/eval", post(eval_recipe))
53-
.route("/", get(upstream_index))
54-
.route("/$", get(ui_index))
53+
.route("/", get(ui_index))
5554
.route("/*file", get(ui_file))
5655
.with_state(UsubaState {
5756
storage,

0 commit comments

Comments
 (0)