Deploy front end to root directory
This commit is contained in:
@@ -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))?
|
||||
|
||||
Reference in New Issue
Block a user