-use crate::settings::Settings;
use actix_files::NamedFile;
-use actix_web::web;
+use actix_web::*;
+use lemmy_utils::settings::Settings;
pub fn config(cfg: &mut web::ServiceConfig) {
cfg
)
.route("/search", web::get().to(index))
.route("/sponsors", web::get().to(index))
- .route("/password_change/{token}", web::get().to(index));
+ .route("/password_change/{token}", web::get().to(index))
+ .route("/instances", web::get().to(index));
}
-async fn index() -> Result<NamedFile, actix_web::error::Error> {
+async fn index() -> Result<NamedFile, Error> {
Ok(NamedFile::open(
Settings::get().front_end_dir + "/index.html",
)?)