octane 0.1.2

A web server built from the ground up.
Documentation
use octane::config::Config;
use octane::responder::StatusCode;
use octane::server::Octane;
use octane::{
    route,
    router::{Flow, Route},
};
use std::error::Error;

fn main() -> Result<(), Box<dyn Error>> {
    let mut app = Octane::new();
    app.ssl(8001)
        .key("templates/key.pem")
        .cert("templates/cert.pem");
    //  app.set_404_file("templates/eerror.html");
    app.get(
        "/to_home",
        route!(|req, res| {
            res.redirect("/").send("redirecting");
            Flow::Stop
        }),
    )?;

    app.get(
        "/favicon.ico",
        route!(|req, res| {
            res.send_file("templates/favicon.ico").expect("oof");
            Flow::Next
        }),
    )?;

    app.add(octane::middlewares::static_files::serve_static(
        "/somelocation",
        "templates/",
    ))?;
    app.listen(8080)
}