Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 477 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 477 Bytes

A webring++ server implementation for actix-web.

use webring_plusplus_server_actix::webring_plusplus_service;

#[actix_rt::main]
async fn main() -> Result<()> {
    HttpServer::new(|| {
        App::new().service(webring_plusplus_service(vec![
            Cow::from("askjeeves.com"),
            Cow::from("altavista.com"),
        ]))
    })
    .bind("0.0.0.0:8080")?
    .run()
    .await
}