sfx 0.1.2

SFX is a streamlined, full-stack Rust framework for building small web services with integrated authentication, localization, and config-driven UI components
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use sfx::prelude::*;
pub use sfx::APP;
pub use sfx::op;

endpoint! {
    APP.url("/"),

    pub home_route <HTTP> {
        println!("{}", req.path());
        akari_render!(
            "index.html",
            pageprop = op::pageprop(req, "Home", "Welcome to the SFX Home Page"),
            path = op::into_path_l(req, vec!["home"])
        )
    }
}