initial html changes

This commit is contained in:
2024-03-27 23:19:07 +02:00
parent 7fbfbaa039
commit c55d6d37e2
6 changed files with 233 additions and 12 deletions

View File

@@ -15,7 +15,8 @@ pub(crate) async fn start_actix(config: &Config, database: Database) -> anyhow::
App::new()
.app_data(actix_web::web::Data::new(database.clone()))
.route("/", web::get().to(routes::index)) // index.html
.service(actix_fs::Files::new("/static", "./static").index_file("index.html")) // static directoryh
.service(actix_fs::Files::new("/static", "./static").index_file("index.html")) // static directory
.service(web::redirect("/favicon.ico", "/static/favicon.ico")) //? special redirect for favicon
})
.bind(bindip)?