Function rust_hello_world::index[][src]

pub(crate) async fn index() -> Result<Template, (Status, Template)>
Expand description

Handle all GET requests for the “/” route. We return either a Template instance, or a Template instance with a specific HTTP status code.