Function kalgan::run

source · []
pub fn run(
    settings_file_path: &'static str,
    controller: fn(_: &Request<'_>, _: &str) -> Result<Response, String>,
    middleware: Option<fn(_: &mut Request<'_>, _: &str) -> Result<Outcome, String>>
)
Expand description

Parses configuration parameters, routes and translation messages and finally starts the http server.