initial html changes
This commit is contained in:
@@ -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)?
|
||||
|
||||
Reference in New Issue
Block a user