zero4rs 2.0.0

zero4rs is a powerful, pragmatic, and extremely fast web framework for Rust
Documentation
use lazy_static::lazy_static;

use zero4rs::core::auth0::Protected;
use zero4rs::core::url_dispatch::*;
use zero4rs::server::Application;

lazy_static! {
    pub static ref P0: Protected = Protected::AnonymousUser;
}

#[rustfmt::skip]
#[actix_web::main]
async fn main() {
    Application::run("zero4rs", |cfg, ctx| {
        url_dispatch(cfg, ctx.clone(), "get", &P0, "/info2", zero4rs::sitepages::default::home);
        url_dispatch(cfg, ctx.clone(), "get", &P0, "/info3", || async { "Hello, server is alive and kicking ...." });
    })
    .await
}