Skip to content

Instantly share code, notes, and snippets.

@ta32
ta32 / main.rs
Created Jun 14, 2020
actix wasm example
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 {