happy 0.1.1

A simple web framework with a focus on serving static files and hosting APIs
Documentation
#[macro_use]
extern crate serde_derive;
extern crate happy;

#[derive(Deserialize)]
struct LeftPad {
    string: String,
    padding: usize,
}

fn left_pad(_: happy::RequestInfo, problem: LeftPad) -> String {
    let LeftPad { string, padding } = problem;
    format!("{:width$}", string, width = padding)
}

pub fn main() {
    happy::create()
        .static_dir("static")
        .api("api/left-pad", left_pad)
        .run();
}