[][src]Function actix_webfinger::app

pub fn app<S, R>(state: S) -> App<S> where
    R: Resolver<S> + 'static,
    S: 'static, 

A simple way to mount the webfinger app to your Actix Web application

This example is not tested
use actix_web::server;
use actix_webfinger::app;

server::new(|| {
    app::<_, MyResolver>(my_state)
})
.bind("127.0.0.1:8000")?
.run();