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
}