Skip to content

Instantly share code, notes, and snippets.

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