Deploy front end to root directory

This commit is contained in:
2026-04-02 01:58:26 -04:00
parent 55b37e5156
commit 3de54fa0dc
4 changed files with 4 additions and 4 deletions

View File

@@ -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))?