rapid-web 0.4.9

A simple Rust server for the Rapid framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use rapid_web::actix::HttpResponse;
use rapid_web::{rapid_web_codegen::rapid_handler, welcome_view};

pub const ROUTE_KEY: &str = "index";

#[rapid_handler]
pub async fn query() -> HttpResponse {
    HttpResponse::Ok()
    .content_type("text/html; charset=utf-8")
    .body(welcome_view)
}