diff --git a/did_router/src/main.rs b/did_router/src/main.rs index e567166..f516115 100644 --- a/did_router/src/main.rs +++ b/did_router/src/main.rs @@ -116,9 +116,9 @@ async fn main() -> std::io::Result<()> { let cors = Cors::permissive(); App::new() .wrap(cors) - .service(Files::new("/admin", "/var/www/did_router/").index_file("index.html")) .service( web::scope("/api").configure(api_config)) + .service(Files::new("/", "/var/www/did_router/").index_file("index.html")) .default_service(web::route().to(index)) }) .bind(("0.0.0.0", 3000))? diff --git a/frontend/Trunk.toml b/frontend/Trunk.toml index d4aa8b3..4d93b6f 100644 --- a/frontend/Trunk.toml +++ b/frontend/Trunk.toml @@ -4,5 +4,5 @@ port = 8080 [[hooks]] stage = "pre_build" -command = "./tailwindcss.exe" +command = "./tailwindcss" command_arguments = ["-i", "input.css", "-o", "./dist/.stage/app.css"] diff --git a/frontend/index.html b/frontend/index.html index d82072b..35cb991 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@ Did Router - + diff --git a/frontend/justfile b/frontend/justfile index f7c2987..62020d7 100644 --- a/frontend/justfile +++ b/frontend/justfile @@ -1,5 +1,5 @@ build: - trunk build --release --public-url ./admin/ + trunk build --release install: build mkdir -p /var/www/did_router cp dist/* /var/www/did_router/