]> Untitled Git - lemmy.git/blobdiff - server/src/routes/index.rs
routes.api: fix get_captcha endpoint (#1135)
[lemmy.git] / server / src / routes / index.rs
index 9f18b64d81c10ec698aef65de25b532d5ee7212f..88a36c3983b9aa6ae4b46e9c60e669b9abff44ba 100644 (file)
@@ -1,4 +1,6 @@
-use super::*;
+use actix_files::NamedFile;
+use actix_web::*;
+use lemmy_utils::settings::Settings;
 
 pub fn config(cfg: &mut web::ServiceConfig) {
   cfg
@@ -38,10 +40,11 @@ pub fn config(cfg: &mut web::ServiceConfig) {
     )
     .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",
   )?)