View main.rs
use actix_web::{App, HttpServer, Responder, HttpResponse, web, get, Result}; | |
use actix_web_static_files; | |
use actix_files as fs; | |
use actix_files::NamedFile; | |
async fn index() -> impl Responder { | |
HttpResponse::Ok().body("Hello world!") | |
} | |
async fn index2() -> impl Responder { |